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

Alfred Persson Forsberg via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Jul 25 16:44:59 PDT 2023


alfredfo created this revision.
alfredfo added a reviewer: michaelrj.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
alfredfo requested review of this revision.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156276

Files:
  libc/include/pthread.h.def


Index: libc/include/pthread.h.def
===================================================================
--- libc/include/pthread.h.def
+++ 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 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156276.544147.patch
Type: text/x-patch
Size: 311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230725/6855931f/attachment.bin>


More information about the libc-commits mailing list