ASL
Loading...
Searching...
No Matches
Lock Class Reference

Detailed Description

A Lock is an automatic locker/unlocker of a Mutex.

Locks the mutex on construction and unlocks on destruction.

Mutex mutex;
void do_something_sync()
{
Lock _(mutex);
do_something();
}
A mutex that can be locked or unlocked to protect concurrent access to a resource.
Definition Mutex.h:27

#include <asl/Mutex.h>


The documentation for this class was generated from the following file:
  • Mutex.h