25 lines
312 B
C
25 lines
312 B
C
|
//
|
||
|
// Copyright(c) 2015 Gabi Melman.
|
||
|
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||
|
//
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
// null, no cost mutex
|
||
|
|
||
|
namespace spdlog
|
||
|
{
|
||
|
namespace details
|
||
|
{
|
||
|
struct null_mutex
|
||
|
{
|
||
|
void lock() {}
|
||
|
void unlock() {}
|
||
|
bool try_lock()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|