fix race condition in logging.hpp
This commit is contained in:
parent
f03ca4f293
commit
c33ab763e6
2 changed files with 13 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <future> // std::future (Future)
|
||||
#include <map> // std::map (Map)
|
||||
#include <memory> // std::shared_ptr and std::unique_ptr (SharedPointer, UniquePointer)
|
||||
#include <mutex> // std::mutex and std::lock_guard (Mutex, LockGuard)
|
||||
#include <optional> // std::optional (Option)
|
||||
#include <string> // std::string (String, StringView)
|
||||
#include <string_view> // std::string_view (StringView)
|
||||
|
@ -34,6 +35,9 @@ namespace util::types {
|
|||
|
||||
using Exception = std::exception; ///< Standard exception type.
|
||||
|
||||
using Mutex = std::mutex; ///< Mutex type for synchronization.
|
||||
using LockGuard = std::lock_guard<Mutex>; ///< RAII-style lock guard for mutexes.
|
||||
|
||||
inline constexpr std::nullopt_t None = std::nullopt; ///< Represents an empty optional value.
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue