mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-03 23:39:41 +00:00
Migrate from boost -> std for shared_mutex, unique_lock and shared_lock
This commit is contained in:
parent
b8f935408c
commit
cac955764a
@ -40,15 +40,13 @@
|
|||||||
#include <musikcore/sdk/IEnvironment.h>
|
#include <musikcore/sdk/IEnvironment.h>
|
||||||
#include <musikcore/sdk/IDebug.h>
|
#include <musikcore/sdk/IDebug.h>
|
||||||
|
|
||||||
#pragma warning(push, 0)
|
#include <shared_mutex>
|
||||||
#include <boost/thread/shared_mutex.hpp>
|
#include <mutex>
|
||||||
#include <boost/thread/locks.hpp>
|
|
||||||
#pragma warning(pop)
|
|
||||||
|
|
||||||
class ReadWriteLock {
|
class ReadWriteLock {
|
||||||
typedef boost::shared_mutex Mutex;
|
typedef std::shared_mutex Mutex;
|
||||||
typedef boost::unique_lock<Mutex> WriteLock;
|
typedef std::unique_lock<Mutex> WriteLock;
|
||||||
typedef boost::shared_lock<Mutex> ReadLock;
|
typedef std::shared_lock<Mutex> ReadLock;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WriteLock Write() {
|
WriteLock Write() {
|
||||||
|
Loading…
Reference in New Issue
Block a user