Home | History | Annotate | Download | only in Support

Lines Matching defs:lock

32       /// Initializes the lock but doesn't acquire it. if \p recursive is set
33 /// to false, the lock will not be recursive which makes it cheaper but
39 /// Releases and removes the lock
48 /// Attempts to unconditionally acquire the lock. If the lock is held by
49 /// another thread, this method will wait until it can acquire the lock.
51 /// @brief Unconditionally acquire the lock.
54 /// Attempts to release the lock. If the lock is held by the current
55 /// thread, the lock is released allowing other threads to acquire the
56 /// lock.
58 /// @brief Unconditionally release the lock.
61 /// Attempts to acquire the lock without blocking. If the lock is not
63 /// the lock is available, it is acquired.
64 /// @returns false if any kind of error occurs or the lock is not
66 /// @brief Try to acquire the lock.
99 bool lock() {
106 assert((recursive || acquired == 0) && "Lock already acquired!!");
120 "Lock not acquired before release!");
146 mtx.lock();