libstdc++
|
![]() |
Classes for mutex support.
void std::call_once | ( | once_flag & | __once, |
_Callable && | __f, | ||
_Args &&... | __args | ||
) |
void std::lock | ( | _L1 & | __l1, |
_L2 & | __l2, | ||
_L3 &... | __l3 | ||
) |
Generic lock.
__l1 | Meets Mutex requirements (try_lock() may throw). |
__l2 | Meets Mutex requirements (try_lock() may throw). |
__l3 | Meets Mutex requirements (try_lock() may throw). |
An | exception thrown by an argument's lock() or try_lock() member. |
All arguments are locked via a sequence of calls to lock(), try_lock() and unlock(). If the call exits via an exception any locks that were obtained will be released.
Definition at line 738 of file mutex.
References std::lock().
Referenced by std::lock().
int std::try_lock | ( | _Lock1 & | __l1, |
_Lock2 & | __l2, | ||
_Lock3 &... | __l3 | ||
) |
Generic try_lock.
__l1 | Meets Mutex requirements (try_lock() may throw). |
__l2 | Meets Mutex requirements (try_lock() may throw). |
__l3 | Meets Mutex requirements (try_lock() may throw). |
Sequentially calls try_lock() on each argument.
Definition at line 714 of file mutex.
References std::try_lock().
Referenced by std::try_lock().