MCPcopy Create free account
hub / github.com/alibaba/async_simple / Stop

Method Stop

async_simple/coro/test/ResumeByScheduleTest.cpp:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 }
64
65 void Stop() {
66 std::unique_lock<std::mutex> guard(this->mut_);
67 if (stop_ == true) {
68 return;
69 }
70 stop_ = true;
71 cv_.notify_one();
72 guard.unlock();
73 backend_.join();
74 }
75
76private:
77 std::thread backend_;

Callers 1

TESTFunction · 0.80

Calls 2

unlockMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected