[libcxx-commits] [libcxxabi] [libcxx] [libc++] Split the monolithic __threading_support header (PR #79654)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jan 29 11:29:36 PST 2024
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 1d5820aafeb08c176189d44331e3e2a8030e76e4 eff1c10eaad2f49db0df225c664a29bbb99292cb -- libcxx/include/__thread/support.h libcxx/include/__thread/support/c11.h libcxx/include/__thread/support/external.h libcxx/include/__thread/support/pthread.h libcxx/include/__thread/support/windows.h libcxx/include/__atomic/atomic_flag.h libcxx/include/__atomic/atomic_sync.h libcxx/include/__condition_variable/condition_variable.h libcxx/include/__mutex/mutex.h libcxx/include/__thread/formatter.h libcxx/include/__thread/id.h libcxx/include/__thread/jthread.h libcxx/include/__thread/this_thread.h libcxx/include/__thread/thread.h libcxx/include/__thread/timed_backoff_policy.h libcxx/include/mutex libcxx/include/semaphore libcxx/include/thread libcxx/src/call_once.cpp libcxx/src/condition_variable_destructor.cpp libcxx/src/mutex_destructor.cpp libcxx/src/support/win32/thread_win32.cpp libcxxabi/src/cxa_exception_storage.cpp libcxxabi/src/cxa_guard_impl.h libcxxabi/src/cxa_thread_atexit.cpp libcxxabi/src/fallback_malloc.cpp libcxxabi/test/test_fallback_malloc.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__thread/support.h b/libcxx/include/__thread/support.h
index 619ce38960..03a9c730c8 100644
--- a/libcxx/include/__thread/support.h
+++ b/libcxx/include/__thread/support.h
@@ -53,8 +53,8 @@ using __libcpp_condvar_t = ...;
int __libcpp_condvar_signal(__libcpp_condvar_t*);
int __libcpp_condvar_broadcast(__libcpp_condvar_t*);
_LIBCPP_NO_THREAD_SAFETY_ANALYSIS int __libcpp_condvar_wait(__libcpp_condvar_t*, __libcpp_mutex_t*);
-_LIBCPP_NO_THREAD_SAFETY_ANALYSIS int __libcpp_condvar_timedwait(__libcpp_condvar_t*, __libcpp_mutex_t*, __libcpp_timespec_t*);
-int __libcpp_condvar_destroy(__libcpp_condvar_t*);
+_LIBCPP_NO_THREAD_SAFETY_ANALYSIS int __libcpp_condvar_timedwait(__libcpp_condvar_t*, __libcpp_mutex_t*,
+__libcpp_timespec_t*); int __libcpp_condvar_destroy(__libcpp_condvar_t*);
//
// Execute once
``````````
</details>
https://github.com/llvm/llvm-project/pull/79654
More information about the libcxx-commits
mailing list