MCPcopy Create free account
hub / github.com/apple/foundationdb / destroy

Function destroy

fdbclient/MultiVersionTransaction.actor.cpp:3101–3110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3099}
3100
3101THREAD_FUNC destroy(void* arg) {
3102 threadSleep(0.1 * deterministicRandom()->random01());
3103 try {
3104 ((ThreadSingleAssignmentVar<int>*)arg)->cancel();
3105 } catch (Error& e) {
3106 printf("Caught error in destroy: %s\n", e.name());
3107 ASSERT(false);
3108 }
3109 THREAD_RETURN;
3110}
3111
3112THREAD_FUNC cancel(void* arg) {
3113 threadSleep(0.1 * deterministicRandom()->random01());

Callers 1

cancelFunction · 0.70

Calls 6

threadSleepFunction · 0.85
deterministicRandomFunction · 0.85
printfFunction · 0.85
random01Method · 0.80
cancelMethod · 0.65
nameMethod · 0.65

Tested by

no test coverage detected