Searched refs:s_lock (Results 1 – 5 of 5) sorted by relevance
84 sharable_lock<Mutex> s_lock(mut); in main() local86 scoped_lock<Mutex> e_lock(boost::move(s_lock), try_to_lock); in main()89 sharable_lock<Mutex> s_lock(mut); in main() local92 scoped_lock<Mutex> moved(boost::move(s_lock), try_to_lock); in main()108 sharable_lock<Mutex> s_lock(mut); in main() local110 upgradable_lock<Mutex> u_lock(boost::move(s_lock), try_to_lock); in main()113 sharable_lock<Mutex> s_lock(mut); in main() local116 upgradable_lock<Mutex> moved(boost::move(s_lock), try_to_lock); in main()134 sharable_lock<Mutex> s_lock(boost::move(lock)); in main() local135 lock.swap(s_lock); in main()[all …]
172 sharable_lock<mutex_type> &s_lock = shar; in upgradable_lock() local173 if(s_lock.owns()){ in upgradable_lock()174 if((m_locked = s_lock.mutex()->try_unlock_sharable_and_lock_upgradable()) == true){ in upgradable_lock()175 mp_mutex = s_lock.release(); in upgradable_lock()179 s_lock.release(); in upgradable_lock()
241 sharable_lock<mutex_type> &s_lock = shar; in scoped_lock() local242 if(s_lock.owns()){ in scoped_lock()243 if((m_locked = s_lock.mutex()->try_unlock_sharable_and_lock()) == true){ in scoped_lock()244 mp_mutex = s_lock.release(); in scoped_lock()248 s_lock.release(); in scoped_lock()
96 static curl_simple_lock s_lock = CURL_SIMPLE_LOCK_INIT; variable97 #define global_init_lock() curl_simple_lock_lock(&s_lock)98 #define global_init_unlock() curl_simple_lock_unlock(&s_lock)
2321 scoped_lock s_lock(mutex);2327 sharable_lock(move(s_lock));2389 sharable_lock<Mutex> s_lock(mut);2391 scoped_lock<Mutex> e_lock(move(s_lock, try_to_lock));2411 sharable_lock<Mutex> s_lock(mut);2413 upgradable_lock<Mutex> u_lock(move(s_lock, try_to_lock));2435 sharable_lock<Mutex> s_lock(move(u_lock));2440 sharable_lock<Mutex> s_lock(move(e_lock));2460 sharable_lock<Mutex> s_lock(move(e_lock));2473 sharable_lock<Mutex> s_lock(move(e_lock));[all …]