Browse Source

Disable HAS_VALGRIND logic for `BlockingMutex` (fixes #2703)

gingerBill 2 years ago
parent
commit
8b4c530062
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/threading.cpp

+ 6 - 6
src/threading.cpp

@@ -276,12 +276,12 @@ gb_internal void semaphore_wait(Semaphore *s) {
 
 
 	struct BlockingMutex {
 	struct BlockingMutex {
 		#if defined(HAS_VALGRIND)
 		#if defined(HAS_VALGRIND)
-		BlockingMutex() {
-			VALGRIND_HG_MUTEX_INIT_POST(this, 0);
-		}
-		~BlockingMutex() {
-			VALGRIND_HG_MUTEX_DESTROY_PRE(this);
-		}
+		// BlockingMutex() {
+		// 	VALGRIND_HG_MUTEX_INIT_POST(this, 0);
+		// }
+		// ~BlockingMutex() {
+		// 	VALGRIND_HG_MUTEX_DESTROY_PRE(this);
+		// }
 		#endif
 		#endif
 		i32 state_;
 		i32 state_;