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) {