Move away from shared_lock
It's not supported by enough standard library implementations yet
This commit is contained in:
parent
1cd7a1b972
commit
3627efe03b
@ -13,7 +13,6 @@
|
|||||||
#ifndef CHAISCRIPT_NO_THREADS
|
#ifndef CHAISCRIPT_NO_THREADS
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <shared_mutex>
|
|
||||||
#else
|
#else
|
||||||
#ifndef CHAISCRIPT_NO_THREADS_WARNING
|
#ifndef CHAISCRIPT_NO_THREADS_WARNING
|
||||||
#pragma message ("ChaiScript is compiling without thread safety.")
|
#pragma message ("ChaiScript is compiling without thread safety.")
|
||||||
@ -46,13 +45,13 @@ namespace chaiscript
|
|||||||
using unique_lock = std::unique_lock<T>;
|
using unique_lock = std::unique_lock<T>;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
using shared_lock = std::shared_lock<T>;
|
using shared_lock = std::unique_lock<T>;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
using lock_guard = std::lock_guard<T>;
|
using lock_guard = std::lock_guard<T>;
|
||||||
|
|
||||||
|
|
||||||
using shared_mutex = std::shared_timed_mutex;
|
using shared_mutex = std::mutex;
|
||||||
|
|
||||||
using std::mutex;
|
using std::mutex;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user