Lines Matching refs:lock
45 void lock()
51 throw_system_error(err, "mutex:lock failed.");
124 void lock()
129 throw_system_error(err, "recursive_mutex::lock failed");
169 explicit lock_guard(mutex_type& m) : pm(m) { pm.lock(); }
194 lock();
210 // any lock-involving timed mutex API is currently only for custom implementations
251 void lock()
255 "unique_lock::lock: references null mutex");
258 "unique_lock::lock: already locked" );
260 pm->lock();
359 unique_lock<L0> u0(l0, try_to_lock); // try to lock the first Lockable
360 // using unique_lock since we don't want to unlock l0 manually if l1 fails to lock
363 if (l1.try_lock()) // lock the second one
398 // we first lock the one that is the most difficult to lock
439 void lock(L0& l0, L1& l1)
466 void lock(L0& l0, L1& l1, L2&... l2)
494 // use a lock to ensure the call to the functor