Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/3rdparty/libprocess
/ trigger
Method
trigger
src/latch.cpp:46–54 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
44
45
46
bool Latch::trigger()
47
{
48
bool expected = false;
49
if (triggered.compare_exchange_strong(expected, true)) {
50
terminate(pid);
51
return true;
52
}
53
return false;
54
}
55
56
57
bool Latch::await(const Duration& duration)
Callers
4
AwaitAssertAbandoned
Function · 0.80
awaited
Function · 0.80
expired
Function · 0.80
after
Function · 0.80
Calls
1
terminate
Function · 0.70
Tested by
1
AwaitAssertAbandoned
Function · 0.64