Skip to content

Commit 0b87673

Browse files
committed
dtoolbase: fix compilation error with musl
Fixes panda3d#875
1 parent 54ff2a8 commit 0b87673

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dtool/src/dtoolbase/mutexPosixImpl.I

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*/
1717
constexpr MutexPosixImpl::
18-
MutexPosixImpl() noexcept : _lock(PTHREAD_MUTEX_INITIALIZER) {
18+
MutexPosixImpl() noexcept {
1919
}
2020

2121
/**

dtool/src/dtoolbase/mutexPosixImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class EXPCL_DTOOL_DTOOLBASE MutexPosixImpl {
4040
INLINE void unlock();
4141

4242
private:
43-
pthread_mutex_t _lock;
43+
pthread_mutex_t _lock = PTHREAD_MUTEX_INITIALIZER;
4444
friend class ConditionVarPosixImpl;
4545
};
4646

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy