MCPcopy Create free account
hub / github.com/acl-dev/acl / thread_mutex_guard

Method thread_mutex_guard

lib_acl_cpp/src/stdlib/thread_mutex.cpp:97–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95/////////////////////////////////////////////////////////////////////////////
96
97thread_mutex_guard::thread_mutex_guard(thread_mutex& mutex)
98: mutex_(mutex)
99{
100 if (!mutex_.lock()) {
101 logger_fatal("lock error=%s", last_serror());
102 }
103}
104
105thread_mutex_guard::~thread_mutex_guard()
106{

Callers

nothing calls this directly

Calls 2

last_serrorFunction · 0.70
lockMethod · 0.45

Tested by

no test coverage detected