David Rose 20 years ago
parent
commit
6b6dd232ff
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/express/mutexDummyImpl.I

+ 2 - 0
panda/src/express/mutexDummyImpl.I

@@ -36,7 +36,9 @@ MutexDummyImpl() {
 ////////////////////////////////////////////////////////////////////
 INLINE MutexDummyImpl::
 ~MutexDummyImpl() {
+#ifdef CHECK_REENTRANT_MUTEX
   nassertv(_lock_count == 0);
+#endif
 }
 
 ////////////////////////////////////////////////////////////////////