MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / tryPushToQueue

Method tryPushToQueue

modules/core/core/src/core/log/logger.cpp:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88bool Logger::tryPushToQueue(LogEvent ev, skr::StringView format, ArgsList&& args_list) SKR_NOEXCEPT
89{
90 auto worker = LogManager::Get()->TryGetWorker();
91 if (worker)
92 {
93 auto queue_ = worker->queue_;
94 queue_->push(ev, format, skr::move(args_list), ev.get_level() == LogLevel::kBackTrace);
95 notifyWorker();
96 return true;
97 }
98 return false;
99}
100
101bool Logger::tryPushToQueue(LogEvent ev, skr::String&& what) SKR_NOEXCEPT
102{

Callers

nothing calls this directly

Calls 3

GetFunction · 0.50
moveFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected