mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 08:55:46 +08:00
18 lines
197 B
C++
18 lines
197 B
C++
#pragma once
|
|
|
|
// null, no cost mutex
|
|
|
|
namespace c11log {
|
|
namespace details {
|
|
struct null_mutex
|
|
{
|
|
void lock() {}
|
|
void unlock() {}
|
|
bool try_lock()
|
|
{
|
|
return true;
|
|
}
|
|
};
|
|
}
|
|
}
|