class
#include <Core/Logger.h>
ThreadContextManager Manages thread contexts for LoggerBackend.
This class should not usually be used directly.
Public static functions
- static auto Get() -> ThreadContextManager& noexcept
- Returns static instance of thread context manager.
Constructors, destructors, conversion operators
- ThreadContextManager(ThreadContextManager const&) deleted
Public functions
- auto operator=(ThreadContextManager const&) -> ThreadContextManager& deleted
-
template<typename TCallback>void ForEachThreadContext(TCallback cb) noexcept
- Calls the specified callback for each registered thread context.
-
void RegisterThreadContext(std::
shared_ptr<ThreadContext> const& threadContext) noexcept - Registers a new thread context.
- void AddInvalidThreadContext() noexcept
- Adds an invalid thread context.
- auto HasInvalidThreadContext() const -> bool noexcept
- Returns
true
if an invalid thread context is present. - auto HasNewThreadContext() -> bool noexcept
- Returns
true
if a new thread context is present. - void RemoveSharedInvalidatedThreadContext(ThreadContext const* threadContext) noexcept
- Removes shared invalidated thread context.