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

Method lock

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

Source from the content-addressed store, hash-verified

273 // Exclusive ownership
274
275 inline void shared_mutex::lock()
276 {
277 boost::unique_lock<mutex_t> lk(mut_);
278 gate1_.wait(lk, boost::bind(&shared_mutex::no_writer, boost::ref(*this)));
279 state_ |= write_entered_;
280 gate2_.wait(lk, boost::bind(&shared_mutex::no_readers, boost::ref(*this)));
281 }
282
283 inline bool shared_mutex::try_lock()
284 {

Callers

nothing calls this directly

Calls 3

bindClass · 0.50
refFunction · 0.50
waitMethod · 0.45

Tested by

no test coverage detected