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

Function setAbort

fdbclient/MultiVersionTransaction.actor.cpp:3072–3082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3070}
3071
3072THREAD_FUNC setAbort(void* arg) {
3073 threadSleep(0.1 * deterministicRandom()->random01());
3074 try {
3075 ((ThreadSingleAssignmentVar<Void>*)arg)->send(Void());
3076 ((ThreadSingleAssignmentVar<Void>*)arg)->delref();
3077 } catch (Error& e) {
3078 printf("Caught error in setAbort: %s\n", e.name());
3079 ASSERT(false);
3080 }
3081 THREAD_RETURN;
3082}
3083
3084THREAD_FUNC releaseMem(void* arg) {
3085 threadSleep(0.1 * deterministicRandom()->random01());

Callers

nothing calls this directly

Calls 8

threadSleepFunction · 0.85
deterministicRandomFunction · 0.85
printfFunction · 0.85
random01Method · 0.80
nameMethod · 0.65
VoidClass · 0.50
sendMethod · 0.45
delrefMethod · 0.45

Tested by

no test coverage detected