mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Move logs::channel registration out of the constructor
Allow constinit initialization of logs::channel.
This commit is contained in:
parent
e57c01907e
commit
87a5dd66ab
3 changed files with 22 additions and 8 deletions
|
@ -267,13 +267,11 @@ void logs::listener::add(logs::listener* _new)
|
|||
}
|
||||
}
|
||||
|
||||
logs::channel::channel(const char* name)
|
||||
: name(name)
|
||||
, enabled(level::notice)
|
||||
logs::registerer::registerer(channel& _ch)
|
||||
{
|
||||
std::lock_guard lock(g_mutex);
|
||||
|
||||
get_logger()->channels.emplace(name, this);
|
||||
get_logger()->channels.emplace(_ch.name, &_ch);
|
||||
}
|
||||
|
||||
void logs::message::broadcast(const char* fmt, const fmt_type_info* sup, ...) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue