We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 11eae3f + 0b87673 commit c9520c8Copy full SHA for c9520c8
dtool/src/dtoolbase/mutexPosixImpl.I
@@ -15,7 +15,7 @@
15
*
16
*/
17
constexpr MutexPosixImpl::
18
-MutexPosixImpl() noexcept : _lock(PTHREAD_MUTEX_INITIALIZER) {
+MutexPosixImpl() noexcept {
19
}
20
21
/**
dtool/src/dtoolbase/mutexPosixImpl.h
@@ -40,7 +40,7 @@ class EXPCL_DTOOL_DTOOLBASE MutexPosixImpl {
40
INLINE void unlock();
41
42
private:
43
- pthread_mutex_t _lock;
+ pthread_mutex_t _lock = PTHREAD_MUTEX_INITIALIZER;
44
friend class ConditionVarPosixImpl;
45
};
46
0 commit comments