Explorar o código

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

gingerBill %!s(int64=2) %!d(string=hai) anos
pai
achega
8b4c530062
Modificáronse 1 ficheiros con 6 adicións e 6 borrados
  1. 6 6
      src/threading.cpp

+ 6 - 6
src/threading.cpp

@@ -276,12 +276,12 @@ gb_internal void semaphore_wait(Semaphore *s) {
 
 	struct BlockingMutex {
 		#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
 		i32 state_;