Skip to content

Commit

Permalink
threads: enable PTHREAD_{MUTEX,RWLOCK,COND}_INITIALIZER. (WebAssemb…
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark authored and john-sharratt committed Mar 6, 2023
1 parent 6eda2e5 commit 18ff8b3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions libc-top-half/musl/include/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,9 @@ extern "C" {
#define PTHREAD_PROCESS_SHARED 1


#if defined(__wasilibc_unmodified_upstream) || defined(_REENTRANT)
#define PTHREAD_MUTEX_INITIALIZER {{{0}}}
#define PTHREAD_RWLOCK_INITIALIZER {{{0}}}
#define PTHREAD_COND_INITIALIZER {{{0}}}
#else
#define PTHREAD_MUTEX_INITIALIZER 0
#define PTHREAD_RWLOCK_INITIALIZER 0
#define PTHREAD_COND_INITIALIZER 0
#endif
#define PTHREAD_ONCE_INIT 0


Expand Down

0 comments on commit 18ff8b3

Please sign in to comment.