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

Function lock_guard

extern/boost/boost/thread/lock_guard.hpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49#if ! defined BOOST_THREAD_NO_CXX11_HDR_INITIALIZER_LIST
50 lock_guard(std::initializer_list<thread_detail::lockable_wrapper<Mutex> > l_) :
51 m(*(const_cast<thread_detail::lockable_wrapper<Mutex>*>(l_.begin())->m))
52 {
53 m.lock();
54 }
55
56 lock_guard(std::initializer_list<thread_detail::lockable_adopt_wrapper<Mutex> > l_) :
57 m(*(const_cast<thread_detail::lockable_adopt_wrapper<Mutex>*>(l_.begin())->m))

Callers

nothing calls this directly

Calls 3

is_locked_by_this_threadFunction · 0.85
beginMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected