Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 19f3f0d

Browse files
committed
Merge pull request #1285 from schveiguy/pthreadmutexosx
Fix issue 14617 - PTHREAD_MUTEX_INITIALIZER does not work on OSX
2 parents 6e55b7a + ab78a53 commit 19f3f0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/sys/posix/pthread.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ else version( OSX )
162162
PTHREAD_EXPLICIT_SCHED = 2
163163
}
164164

165-
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init;
166-
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
165+
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t(0x32AAABA7);
166+
enum PTHREAD_ONCE_INIT = pthread_once_t(0x30b1bcba);
167167

168168
enum
169169
{

0 commit comments

Comments
 (0)