Lines Matching refs:mut
74 boost::shared_mutex mut; variable
83 mut.lock_shared(); in reader()
86 mut.unlock_shared(); in reader()
98 mut.lock(); in writer()
103 mut.unlock(); in writer()
115 if (mut.try_lock_shared()) in try_reader()
119 mut.unlock_shared(); in try_reader()
132 if (mut.try_lock()) in try_writer()
138 mut.unlock(); in try_writer()
151 if (mut.try_lock_shared_for(boost::chrono::microseconds(5))) in try_for_reader()
155 mut.unlock_shared(); in try_for_reader()
168 if (mut.try_lock_for(boost::chrono::microseconds(5))) in try_for_writer()
174 mut.unlock(); in try_for_writer()
218 boost::upgrade_mutex mut; variable
227 mut.lock_shared(); in reader()
230 mut.unlock_shared(); in reader()
242 mut.lock(); in writer()
247 mut.unlock(); in writer()
259 if (mut.try_lock_shared()) in try_reader()
263 mut.unlock_shared(); in try_reader()
276 if (mut.try_lock()) in try_writer()
282 mut.unlock(); in try_writer()
295 if (mut.try_lock_shared_for(boost::chrono::microseconds(5))) in try_for_reader()
299 mut.unlock_shared(); in try_for_reader()
312 if (mut.try_lock_for(boost::chrono::microseconds(5))) in try_for_writer()
318 mut.unlock(); in try_for_writer()
331 mut.lock_upgrade(); in upgradable()
334 mut.unlock_upgrade(); in upgradable()
346 if (mut.try_lock_upgrade()) in try_upgradable()
350 mut.unlock_upgrade(); in try_upgradable()
363 if (mut.try_lock_upgrade_for(boost::chrono::microseconds(5))) in try_for_upgradable()
367 mut.unlock_upgrade(); in try_for_upgradable()
380 mut.lock_shared(); in clockwise()
382 if (mut.try_unlock_shared_and_lock()) in clockwise()
386 else if (mut.try_unlock_shared_and_lock_upgrade()) in clockwise()
389 mut.unlock_upgrade_and_lock(); in clockwise()
394 mut.unlock_shared(); in clockwise()
399 mut.unlock_and_lock_upgrade(); in clockwise()
401 mut.unlock_upgrade_and_lock_shared(); in clockwise()
403 mut.unlock_shared(); in clockwise()
416 mut.lock_upgrade(); in counter_clockwise()
418 mut.unlock_upgrade_and_lock(); in counter_clockwise()
423 mut.unlock_and_lock_shared(); in counter_clockwise()
425 mut.unlock_shared(); in counter_clockwise()
438 if (mut.try_lock_shared()) in try_clockwise()
441 if (mut.try_unlock_shared_and_lock()) in try_clockwise()
445 else if (mut.try_unlock_shared_and_lock_upgrade()) in try_clockwise()
448 mut.unlock_upgrade_and_lock(); in try_clockwise()
453 mut.unlock_shared(); in try_clockwise()
458 mut.unlock_and_lock_upgrade(); in try_clockwise()
460 mut.unlock_upgrade_and_lock_shared(); in try_clockwise()
462 mut.unlock_shared(); in try_clockwise()
476 if (mut.try_lock_shared_for(boost::chrono::microseconds(5))) in try_for_clockwise()
479 if (mut.try_unlock_shared_and_lock_for(boost::chrono::microseconds(5))) in try_for_clockwise()
483 else if (mut.try_unlock_shared_and_lock_upgrade_for(boost::chrono::microseconds(5))) in try_for_clockwise()
486 mut.unlock_upgrade_and_lock(); in try_for_clockwise()
491 mut.unlock_shared(); in try_for_clockwise()
496 mut.unlock_and_lock_upgrade(); in try_for_clockwise()
498 mut.unlock_upgrade_and_lock_shared(); in try_for_clockwise()
500 mut.unlock_shared(); in try_for_clockwise()
514 if (mut.try_lock_upgrade()) in try_counter_clockwise()
517 if (mut.try_unlock_upgrade_and_lock()) in try_counter_clockwise()
523 mut.unlock_and_lock_shared(); in try_counter_clockwise()
525 mut.unlock_shared(); in try_counter_clockwise()
530 mut.unlock_upgrade(); in try_counter_clockwise()
544 if (mut.try_lock_upgrade_for(boost::chrono::microseconds(5))) in try_for_counter_clockwise()
547 if (mut.try_unlock_upgrade_and_lock_for(boost::chrono::microseconds(5))) in try_for_counter_clockwise()
553 mut.unlock_and_lock_shared(); in try_for_counter_clockwise()
555 mut.unlock_shared(); in try_for_counter_clockwise()
560 mut.unlock_upgrade(); in try_for_counter_clockwise()
721 static upgrade_mutex mut; in temp() local
722 unique_lock<upgrade_mutex> ul(mut); in temp()