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.
1 parent 54ff2a8 commit 0b87673Copy full SHA for 0b87673
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