You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/include/spdlog/details/null_mutex.h

25 lines
312 B

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