null_mutex

This commit is contained in:
gabi 2014-10-10 21:36:32 +03:00
parent 068a0e3a6b
commit a72de9d279

View File

@ -0,0 +1,17 @@
#pragma once
// null, no cost mutex
namespace c11log {
namespace details {
struct null_mutex
{
void lock() {}
void unlock() {}
bool try_lock()
{
return true;
}
};
}
}