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

Method pause

src/tests/fetcher_cache_tests.cpp:997–1004  ·  view source on GitHub ↗

Stalls the execution of future HTTP requests inside consume().

Source from the content-addressed store, hash-verified

995
996 // Stalls the execution of future HTTP requests inside consume().
997 void pause()
998 {
999 // If there is no latch or if the existing latch has already been
1000 // triggered, create a new latch.
1001 if (latch.get() == nullptr || latch->await(Duration::min())) {
1002 latch.reset(new Latch());
1003 }
1004 }
1005
1006 void resume()
1007 {

Callers 4

initializeClusterMethod · 0.45
TEST_PFunction · 0.45
TEST_FFunction · 0.45
ACTION_PFunction · 0.45

Calls 4

minFunction · 0.85
getMethod · 0.45
awaitMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected