MCPcopy Create free account
hub / github.com/apache/mesos / trigger

Method trigger

3rdparty/libprocess/src/latch.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46bool 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
57bool Latch::await(const Duration& duration)

Callers 15

AwaitAssertAbandonedFunction · 0.80
awaitedFunction · 0.80
expiredFunction · 0.80
afterFunction · 0.80
synchronizedMethod · 0.80
synchronizedMethod · 0.80
resumeMethod · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
AFunction · 0.80

Calls 1

terminateFunction · 0.70

Tested by 4

AwaitAssertAbandonedFunction · 0.64
resumeMethod · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64