std::shared...utex::unlock(3)
omg hi bestie π youβve opened the std::shared...utex::unlock(3) page from the C++ Standard Libary manual (yes, that spelling is in the manual name, no cap π).
π NAME π
std::shared_timed_mutex::unlock β literally std::shared_timed_mutex::unlock, thatβs the name, thatβs the whole vibe π
.
πΈ Synopsis πΈ
void unlock(); (since C++14)
okay so this one unlocks the mutex. unlocked and unbothered, periodt β¨.
the mutex must be locked by the current thread of execution, otherwise the behavior is undefined. not βmaybe fineβ, not βweβll seeβ, undefined β so like, respect the vibe check π¨.
this operation synchronizes-with (as defined in std::memory_order) any subsequent lock operation that obtains ownership of the same mutex. thatβs the whole synchronization plotline π«.
π«Ά Parameters π«Ά
none, bestie β (none) π.
π Return value π
also none β (none) π.
π¦ Exceptions π¦
throws nothing. not a single throw, iconic π.
π Notes π
unlock() is usually not called directly: std::unique_lock and std::lock_guard are used to manage exclusive locking. so like, the wrappers are the main characters here, and unlock() is lowkey the supporting cast π«Ά.
π Example π
This section is incomplete. Reason: no example.
not me showing up with no example π β thatβs literally what the page says.
π₯ See also π₯
lockβ locks the mutex, blocks if the mutex is not available (public member function).try_lockβ tries to lock the mutex, returns if the mutex is not available (public member function).try_lock_forβ tries to lock the mutex, returns if the mutex has been unavailable for the specified timeout duration (public member function).try_lock_untilβ tries to lock the mutex, returns if the mutex has been unavailable until specified time point has been reached (public member function).- C documentation for
mtx_unlock.
π Category π
Todo no example
and thatβs the page, bestie π«Ά β source/version http://cppreference.com, dated 2024.06.10, page std::shared...utex::unlock(3). mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms