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

Commit fdc4779

Browse files
committed
Add pthread definitions for musl
1 parent 9a7be0e commit fdc4779

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/core/sys/posix/pthread.d

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,20 @@ else version( CRuntime_Bionic )
383383
}
384384
else version( CRuntime_Musl )
385385
{
386+
enum
387+
{
388+
PTHREAD_CREATE_JOINABLE = 0,
389+
PTHREAD_CREATE_DETACHED = 1
390+
}
391+
392+
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init;
393+
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
386394

395+
enum
396+
{
397+
PTHREAD_PROCESS_PRIVATE = 0,
398+
PTHREAD_PROCESS_SHARED = 1
399+
}
387400
}
388401
else
389402
{

0 commit comments

Comments
 (0)