GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::recursive_mutex::unlock(3) C++ Standard Libary std::recursive_mutex::unlock(3)

std::recursive_mutex::unlock - std::recursive_mutex::unlock


void unlock(); (since C++11)


Unlocks the mutex if its level of ownership is 1 (there was exactly one more call to
lock() than there were calls to unlock() made by this thread), reduces the level of
ownership by 1 otherwise.


The mutex must be locked by the current thread of execution, otherwise, the behavior
is undefined.


This operation synchronizes-with (as defined in std::memory_order) any subsequent
lock operation that obtains ownership of the same mutex.


(none)


(none)


Throws nothing.


unlock() is usually not called directly: std::unique_lock and std::lock_guard are
used to manage exclusive locking.


This section is incomplete
Reason: no example


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)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.