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

Function __destroy

src/linux/cgroups.cpp:1656–1668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1654
1655
1656static void __destroy(
1657 const Future<Nothing>& future,
1658 const Owned<Promise<Nothing>>& promise,
1659 const Duration& timeout)
1660{
1661 if (future.isReady()) {
1662 promise->set(future.get());
1663 } else if (future.isFailed()) {
1664 promise->fail(future.failure());
1665 } else {
1666 promise->fail("Timed out after " + stringify(timeout));
1667 }
1668}
1669
1670
1671static Future<Nothing> _destroy(

Callers 2

_destroyMethod · 0.85
_destroyMethod · 0.85

Calls 7

isReadyMethod · 0.80
isFailedMethod · 0.80
failureMethod · 0.80
stringifyFunction · 0.70
setMethod · 0.45
getMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected