MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / __libcpp_atomic_wait

Function __libcpp_atomic_wait

system/lib/libcxx/src/atomic.cpp:185–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 return __libcpp_contention_monitor_for_wait(&__entry->__contention_state, &__entry->__platform_state);
184}
185_LIBCPP_EXPORTED_FROM_ABI void
186__libcpp_atomic_wait(void const volatile* __location, __cxx_contention_t __old_value) noexcept {
187 auto const __entry = __libcpp_contention_state(__location);
188 __libcpp_contention_wait(&__entry->__contention_state, &__entry->__platform_state, __old_value);
189}
190
191/* When the incoming atomic happens to be the platform wait size, we still need to use the
192 table for the contention detection, but we can use the atomic directly for the wait. */

Callers 1

operator()Method · 0.85

Calls 2

__libcpp_contention_waitFunction · 0.85

Tested by

no test coverage detected