From 9833dab6e4f96c045da632c208aa1bc977d45349 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 19 Jul 2019 19:38:17 +0200 Subject: [PATCH] Removed an not working utility --- src/misc/advanced_mutex.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/misc/advanced_mutex.h b/src/misc/advanced_mutex.h index bcd2409..665f15f 100644 --- a/src/misc/advanced_mutex.h +++ b/src/misc/advanced_mutex.h @@ -158,6 +158,9 @@ namespace std { 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 { std::shared_mutex handle; public: @@ -274,6 +277,7 @@ namespace std { std::atomic count; mutex_guarded> shared_counts; }; + */ template inline bool mutex_locked(T& mutex) {