mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
1. renamed lib to to spitlog
2. Rotating bugfix
This commit is contained in:
17
include/spitlog/details/null_mutex.h
Normal file
17
include/spitlog/details/null_mutex.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
// null, no cost mutex
|
||||
|
||||
namespace spitlog {
|
||||
namespace details {
|
||||
struct null_mutex
|
||||
{
|
||||
void lock() {}
|
||||
void unlock() {}
|
||||
bool try_lock()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user