ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sync.mutex.core Module Reference

Data Structures

class  zxfoundation::sync::mutex::mutex
 Blocking mutex — sleep/wake mutual exclusion. More...

Functions

auto is_locked () const noexcept -> bool
 Non-deterministic snapshot: true if the mutex appears held.
auto lock () noexcept -> void
 Acquire the mutex, blocking if contended.
 mutex (const mutex &)=delete
 mutex (mutex &&)=delete
auto operator= (const mutex &)=delete
auto operator= (mutex &&)=delete
auto try_lock () noexcept -> bool
 Try to acquire the mutex without blocking.
auto unlock () noexcept -> void
 Release the mutex and wake the first waiter, if any.

Files

file  zxfoundation/sync/mutex.zcomponent/core.cxxm
file  zxfoundation/sync/mutex.zcomponent/core.cxx