A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/mutex/timed_mutex/unlock/ below:

public member function

<mutex>

std::timed_mutex::unlock

Unlock timed mutex

Unlocks the timed_mutex, releasing ownership over it (it behaves as in mutex).

If other threads are currently blocked attempting to lock this same timed_mutex, one of them acquires ownership over it and continues its execution.

All lock and unlock operations on the timed_mutex follow a single total order, with all visible effects synchronized between the lock operations and previous unlock operations on the same object.

If the timed_mutex is not currently locked by the calling thread, it causes undefined behavior.



Parameters none

Return value none

Data races The timed_mutex object is modified as an atomic operation (causes no data races).

Exception safety If the timed_mutex is currently locked by the calling thread, this function never throws exceptions (no-throw guarantee).
Otherwise, it causes undefined behavior.

See also
timed_mutex::lock
Lock timed mutex (public member function)
timed_mutex::try_lock
Lock timed mutex if not locked (public member function)
timed_mutex::try_lock_for
Try to lock for time span (public member function)
timed_mutex::try_lock_until
Try to lock until time point (public member function)

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