MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / initThreadOnce

Method initThreadOnce

Source/Common/Async.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void Async::initThreadOnce() {
35 std::call_once(_initThreadFlag, [this]() {
36 if (!_thread.isRunning()) {
37 _thread.init(Async::work, this);
38 }
39 });
40}
41
42void Async::stop() {
43 std::lock_guard<std::mutex> guard(_stopMutex);

Callers 1

AsyncThreadMethod · 0.80

Calls 2

isRunningMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected