void lock();
Effects: As if by pm->lock().
Postconditions: owns == true.
Throws: Any exception thrown by pm->lock(). system_error when an exception is required ([thread.req.exception]).
Error conditions:
operation_not_permitted — if pm is nullptr.
resource_deadlock_would_occur — if on entry owns is true.
bool try_lock();
Requires: The supplied Mutex shall meet the Lockable requirements.
Effects: As if by pm->try_lock().
Returns: The value returned by the call to try_lock().
Postconditions: owns == res, where res is the value returned by the call to try_lock().
Throws: Any exception thrown by pm->try_lock(). system_error when an exception is required ([thread.req.exception]).
Error conditions:
operation_not_permitted — if pm is nullptr.
resource_deadlock_would_occur — if on entry owns is true.
template <class Clock, class Duration> bool try_lock_until(const chrono::time_point<Clock, Duration>& abs_time);
Requires: The supplied Mutex type shall meet the TimedLockable requirements.
Effects: As if by pm->try_lock_until(abs_time).
Returns: The value returned by the call to try_lock_until(abs_time).
Postconditions: owns == res, where res is the value returned by the call to try_lock_until(abs_time).
Throws: Any exception thrown by pm->try_lock_until(). system_error when an exception is required ([thread.req.exception]).
Error conditions:
operation_not_permitted — if pm is nullptr.
resource_deadlock_would_occur — if on entry owns is true.
template <class Rep, class Period> bool try_lock_for(const chrono::duration<Rep, Period>& rel_time);
Requires: The supplied Mutex type shall meet the TimedLockable requirements.
Effects: As if by pm->try_lock_for(rel_time).
Returns: The value returned by the call to try_lock_until(rel_time).
Postconditions: owns == res, where res is the value returned by the call to try_lock_for(rel_time).
Throws: Any exception thrown by pm->try_lock_for(). system_error when an exception is required ([thread.req.exception]).
Error conditions:
operation_not_permitted — if pm is nullptr.
resource_deadlock_would_occur — if on entry owns is true.
void unlock();
Effects: As if by pm->unlock().
Postconditions: owns == false.
Error conditions:
operation_not_permitted — if on entry owns is false.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4