spdlog/include/c11log/details/null_mutex.h

18 lines
197 B
C
Raw Normal View History

2014-10-10 14:36:32 -04:00
#pragma once
// null, no cost mutex
namespace c11log {
namespace details {
struct null_mutex
{
void lock() {}
void unlock() {}
bool try_lock()
{
return true;
}
};
}
}