MCPcopy Create free account
hub / github.com/DFHack/dfhack / wait

Method wait

library/PluginManager.cpp:118–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116 mut->unlock();
117 }
118 void wait()
119 {
120 std::unique_lock<std::mutex> lock{*mut, std::defer_lock};
121 while(refcount)
122 {
123 wakeup->wait(lock);
124 }
125 }
126 std::condition_variable * wakeup;
127 std::mutex * mut;
128 int refcount;

Callers 7

UpdateMethod · 0.80
flag_waitFunction · 0.80
unloadMethod · 0.80
hotkey_thread_fnMethod · 0.80
walk_git_filesFunction · 0.80
runMethod · 0.80
waitForWritesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected