MCPcopy Create free account
hub / github.com/a2flo/floor / lock

Method lock

threading/thread_base.cpp:143–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143void thread_base::lock() {
144 try {
145 thread_lock.lock();
146 thread_lock_count++;
147 } catch(system_error& sys_err) {
148 cout << "unable to lock thread: " << sys_err.code() << ": " << sys_err.what() << endl;
149 } catch(...) {
150 cout << "unable to lock thread" << endl;
151 }
152}
153
154bool thread_base::try_lock() {
155 try {

Callers 15

thread_baseMethod · 0.95
restartMethod · 0.95
runMethod · 0.80
handle_eventMethod · 0.80
audio_sourceMethod · 0.80
acquire_contextMethod · 0.80
internal_add_sourceMethod · 0.80
remove_sourceMethod · 0.80
acquire_contextMethod · 0.80
send_dataMethod · 0.80
locked_ptrMethod · 0.80

Calls 1

whatMethod · 0.80

Tested by

no test coverage detected