Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
76
private:
77
std::thread backend_;
Callers
1
TEST
Function · 0.80
Calls
2
unlock
Method · 0.45
join
Method · 0.45
Tested by
no test coverage detected