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

Function lock

extern/boost/boost/thread/lock_types.hpp:334–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332 }
333 }
334 void lock()
335 {
336 if (m == 0)
337 {
338 boost::throw_exception(
339 boost::lock_error(static_cast<int>(system::errc::operation_not_permitted), "boost unique_lock has no mutex"));
340 }
341 if (owns_lock())
342 {
343 boost::throw_exception(
344 boost::lock_error(static_cast<int>(system::errc::resource_deadlock_would_occur), "boost unique_lock owns already the mutex"));
345 }
346 m->lock();
347 is_locked = true;
348 }
349 bool try_lock()
350 {
351 if (m == 0)

Callers 10

lockMethod · 0.70
unique_lockMethod · 0.70
shared_lockFunction · 0.70
upgrade_lockMethod · 0.70
lockMethod · 0.70
mutex.hppFile · 0.50
timed_lockMethod · 0.50
timed_lockMethod · 0.50
BOOST_NOEXCEPT_IFMethod · 0.50
lockMethod · 0.50

Calls 6

lock_errorFunction · 0.85
owns_lockFunction · 0.85
throw_exceptionFunction · 0.50
lockMethod · 0.45
lock_sharedMethod · 0.45
lock_upgradeMethod · 0.45

Tested by

no test coverage detected