From 6a30d5a6c139c3f69deaa8a622d0df5ed2b1f712 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 9 Nov 2018 15:44:45 +0300 Subject: [PATCH] shared_mutex: increase max_readers to 16383 Standard requires at least 10000 for SharedMutex concept --- Utilities/mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/mutex.h b/Utilities/mutex.h index 0dc63a0e8d..6a75b026a6 100644 --- a/Utilities/mutex.h +++ b/Utilities/mutex.h @@ -9,7 +9,7 @@ class shared_mutex final { enum : u32 { - c_one = 1u << 7, // Fixed-point 1.0 value (one writer, 1.0/(max_readers+1) is 1) + c_one = 1u << 14, // Fixed-point 1.0 value (one writer, max_readers = c_one - 1) c_sig = 1u << 30, c_err = 1u << 31, };