Lines Matching refs:lock
16 /// A simple wrapper around a platform-specific lock. See also AutoLock.
19 /// Creates a lock in the "not held" state.
22 /// Destroys the lock.
25 /// Acquires the lock, blocking if it's already held by a different thread.
26 /// The lock must not already be held on the current thread (i.e. recursive
30 /// acquire and release the lock.
33 /// Releases the lock. This must be paired with a call to Acquire().
50 /// A helper class that scopes holding a lock.
56 /// pp::AutoLock lock(lock_);
57 /// ...do something with the lock held...
66 explicit AutoLock(Lock& lock) : lock_(lock) {