Migrate from boost -> std for shared_mutex, unique_lock and shared_lock

This commit is contained in:
casey langen 2022-12-03 23:00:40 -08:00
parent b8f935408c
commit cac955764a

View File

@ -40,15 +40,13 @@
#include <musikcore/sdk/IEnvironment.h>
#include <musikcore/sdk/IDebug.h>
#pragma warning(push, 0)
#include <boost/thread/shared_mutex.hpp>
#include <boost/thread/locks.hpp>
#pragma warning(pop)
#include <shared_mutex>
#include <mutex>
class ReadWriteLock {
typedef boost::shared_mutex Mutex;
typedef boost::unique_lock<Mutex> WriteLock;
typedef boost::shared_lock<Mutex> ReadLock;
typedef std::shared_mutex Mutex;
typedef std::unique_lock<Mutex> WriteLock;
typedef std::shared_lock<Mutex> ReadLock;
public:
WriteLock Write() {