MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / unlock

Function unlock

extern/boost/boost/thread/lock_types.hpp:439–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437#endif
438
439 void unlock()
440 {
441 if (m == 0)
442 {
443 boost::throw_exception(
444 boost::lock_error(static_cast<int>(system::errc::operation_not_permitted), "boost unique_lock has no mutex"));
445 }
446 if (!owns_lock())
447 {
448 boost::throw_exception(
449 boost::lock_error(static_cast<int>(system::errc::operation_not_permitted), "boost unique_lock doesn't own the mutex"));
450 }
451 m->unlock();
452 is_locked = false;
453 }
454
455#if defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS)
456 typedef void (unique_lock::*bool_type)();

Callers 5

unlockMethod · 0.70
mutex.hppFile · 0.50
unlock_if_lockedMethod · 0.50
~scoped_lockFunction · 0.50

Calls 6

lock_errorFunction · 0.85
owns_lockFunction · 0.85
throw_exceptionFunction · 0.50
unlockMethod · 0.45
unlock_sharedMethod · 0.45
unlock_upgradeMethod · 0.45

Tested by

no test coverage detected