[libc-commits] [libc] [libc][WIP] add `pthread_cond_*` public interface (PR #193656)

via libc-commits libc-commits at lists.llvm.org
Wed Apr 22 21:05:01 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- libc/include/llvm-libc-types/pthread_cond_t.h libc/src/pthread/pthread_cond_destroy.cpp libc/src/pthread/pthread_cond_destroy.h libc/src/pthread/pthread_cond_init.cpp libc/src/pthread/pthread_cond_init.h libc/include/llvm-libc-macros/pthread-macros.h libc/src/__support/threads/CndVar.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/include/llvm-libc-macros/pthread-macros.h b/libc/include/llvm-libc-macros/pthread-macros.h
index 34082bed3..9701fa17f 100644
--- a/libc/include/llvm-libc-macros/pthread-macros.h
+++ b/libc/include/llvm-libc-macros/pthread-macros.h
@@ -47,8 +47,10 @@
 
 #define PTHREAD_COND_INITIALIZER                                               \
   {                                                                            \
-      /* .__waiter_queue = */ {NULL, NULL}, /* .__futex = */ {0},              \
-      /* .__shared = */ {0},                /* .__padding = */ {0},            \
+      /* .__waiter_queue = */ {NULL, NULL},                                    \
+      /* .__futex = */ {0},                                                    \
+      /* .__shared = */ {0},                                                   \
+      /* .__padding = */ {0},                                                  \
   }
 
 #define PTHREAD_RWLOCK_INITIALIZER                                             \

``````````

</details>


https://github.com/llvm/llvm-project/pull/193656


More information about the libc-commits mailing list