MCPcopy Create free account
hub / github.com/apple/foundationdb / ~ThreadFuture

Method ~ThreadFuture

flow/include/flow/ThreadHelper.actor.h:605–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603 ThreadFuture(Never) : sav(new ThreadSingleAssignmentVar<T>()) {}
604 ThreadFuture(const Error& error) : sav(new ThreadSingleAssignmentVar<T>()) { sav->sendError(error); }
605 ~ThreadFuture() {
606 if (sav)
607 sav->delref();
608 }
609 void operator=(const ThreadFuture<T>& rhs) {
610 if (rhs.sav)
611 rhs.sav->addref();

Callers

nothing calls this directly

Calls 1

delrefMethod · 0.45

Tested by

no test coverage detected