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

Method lock

extern/boost/boost/thread/pthread/shared_mutex.hpp:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264 }
265
266 void lock()
267 {
268#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS
269 boost::this_thread::disable_interruption do_not_disturb;
270#endif
271 boost::unique_lock<boost::mutex> lk(state_change);
272 state.exclusive_waiting_blocked=true;
273 exclusive_cond.wait(lk, boost::bind(&state_data::can_lock, boost::ref(state)));
274 state.exclusive=true;
275 }
276
277#if defined BOOST_THREAD_USES_DATETIME
278 bool timed_lock(system_time const& timeout)

Callers

nothing calls this directly

Calls 3

bindClass · 0.50
refFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected