[libc-commits] [libc] c1ce7c8 - [libc] pthread.h.def: add PTHREAD_MUTEX_INITIALIZER

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Jul 25 16:47:20 PDT 2023


Author: Alfred Persson Forsberg
Date: 2023-07-25T16:47:15-07:00
New Revision: c1ce7c8341be85346a2dca714bff98700d1234cb

URL: https://github.com/llvm/llvm-project/commit/c1ce7c8341be85346a2dca714bff98700d1234cb
DIFF: https://github.com/llvm/llvm-project/commit/c1ce7c8341be85346a2dca714bff98700d1234cb.diff

LOG: [libc] pthread.h.def: add PTHREAD_MUTEX_INITIALIZER

Adds PTHREAD_MUTEX_INITIALIZER for compiler-rt's builtins/emutls.c

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D156276

Added: 
    

Modified: 
    libc/include/pthread.h.def

Removed: 
    


################################################################################
diff  --git a/libc/include/pthread.h.def b/libc/include/pthread.h.def
index 18352c053938a2..391ecd3c124f2b 100644
--- a/libc/include/pthread.h.def
+++ b/libc/include/pthread.h.def
@@ -13,6 +13,7 @@
 
 #define PTHREAD_STACK_MIN (1 << 14) // 16KB
 
+#define PTHREAD_MUTEX_INITIALIZER {0}
 #define PTHREAD_ONCE_INIT {0}
 
 enum {


        


More information about the libc-commits mailing list