Removed an not working utility
This commit is contained in:
parent
6ee207aaad
commit
9833dab6e4
@ -158,6 +158,9 @@ namespace std {
|
|||||||
T t;
|
T t;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* ATTENTION: Not sure how/why, but this causes a double rwlock unlock sometimes (when used with std::unique_lock)
|
||||||
|
* Do not use this!
|
||||||
class shared_recursive_mutex {
|
class shared_recursive_mutex {
|
||||||
std::shared_mutex handle;
|
std::shared_mutex handle;
|
||||||
public:
|
public:
|
||||||
@ -274,6 +277,7 @@ namespace std {
|
|||||||
std::atomic<std::size_t> count;
|
std::atomic<std::size_t> count;
|
||||||
mutex_guarded<std::map<std::thread::id, std::size_t>> shared_counts;
|
mutex_guarded<std::map<std::thread::id, std::size_t>> shared_counts;
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline bool mutex_locked(T& mutex) {
|
inline bool mutex_locked(T& mutex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user