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

Class ThreadFutureCancelObj

flow/ThreadHelper.actor.cpp:41–45  ·  view source on GitHub ↗

A simple thread object that cancels the threadFuture

Source from the content-addressed store, hash-verified

39
40// A simple thread object that cancels the threadFuture
41struct ThreadFutureCancelObj {
42 ThreadFutureCancelObj(ThreadFuture<Void> f) : f(f) {}
43 void operator()() { f.cancel(); }
44 ThreadFuture<Void> f;
45};
46
47// This unit test should be running with TSAN enabled binary
48TEST_CASE("/flow/safeThreadFutureToFuture/Send") {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected