Provides an easy locking mechanism used to ensure the threadsafety of a code area. More...
#include <xdispatch/synchronized.h>
Public Member Functions | |
| synclock () | |
| synclock (const synclock &) | |
| ~synclock () | |
| operator bool () const | |
| void | unlock () |
Friends | |
| synclock | get_lock_for_key (const std::string &) |
| synclock | get_lock_for_key (dispatch_semaphore_t) |
Provides an easy locking mechanism used to ensure the threadsafety of a code area.
Definition at line 53 of file synchronized.h.
| xdispatch::synclock::synclock | ( | const synclock & | ) |
| xdispatch::synclock::operator bool | ( | ) | const |
| void xdispatch::synclock::unlock | ( | ) |
| synclock get_lock_for_key | ( | const std::string & | ) | [friend] |
| synclock get_lock_for_key | ( | dispatch_semaphore_t | sem | ) | [friend] |
Definition at line 90 of file synchronized.h.