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

Method try_lock

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

Source from the content-addressed store, hash-verified

281 }
282
283 inline bool shared_mutex::try_lock()
284 {
285 boost::unique_lock<mutex_t> lk(mut_);
286 if (!no_writer_no_readers())
287 {
288 return false;
289 }
290 state_ = write_entered_;
291 return true;
292 }
293
294#ifdef BOOST_THREAD_USES_CHRONO
295 template <class Clock, class Duration>

Calls

no outgoing calls

Tested by

no test coverage detected