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

Class State

flow/include/flow/ThreadHelper.actor.h:824–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822class ThreadSafeAsyncVar : NonCopyable, public ThreadSafeReferenceCounted<ThreadSafeAsyncVar<V>> {
823public:
824 struct State {
825 State(V value, ThreadFuture<Void> onChange) : value(value), onChange(onChange) {}
826
827 V value;
828 ThreadFuture<Void> onChange;
829 };
830
831 ThreadSafeAsyncVar() : value(), nextChange(new ThreadSingleAssignmentVar<Void>()) {}
832 ThreadSafeAsyncVar(V const& v) : value(v), nextChange(new ThreadSingleAssignmentVar<Void>()) {}

Callers 1

getMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected