Lines Matching defs:Lock
40 // class Mutex, class Lock
44 // be performed using an instance of a Lock (defined below).
47 // the presence of C++ exceptions. Constructing a Lock object locks
48 // the mutex; destroying the Lock unlocks the mutex.
50 // Lock objects are not themselves thread-safe. You should never
51 // share a Lock object among multiple threads.
63 // Lock lock (mtx); // Lock constructor locks the mutex
83 class Lock;
107 friend class Lock;
111 class Lock
115 Lock (const Mutex& m, bool autoLock = true):
126 ~Lock ()