HelenOS sources
__state 50 uspace/lib/cpp/src/__bits/test/future.cpp std::get<2>(res) = std::get<1>(res).__state();
__state 98 uspace/lib/cpp/src/__bits/test/future.cpp test("default constructed promise has state", p1.__state());
__state 101 uspace/lib/cpp/src/__bits/test/future.cpp auto* s1 = p1.__state();
__state 102 uspace/lib/cpp/src/__bits/test/future.cpp auto* s2 = p2.__state();
__state 106 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("swap switches states pt1", s1, p1.__state());
__state 107 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("swap switches states pt2", s2, p2.__state());
__state 110 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("move construction state moved", s1, p3.__state());
__state 111 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("move construction source empty", p1.__state(), nullptr);
__state 114 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("move assignment state move", s1, p1.__state());
__state 115 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("move assignment source empty", p3.__state(), nullptr);
__state 176 uspace/lib/cpp/src/__bits/test/future.cpp s5 = p5.__state();
__state 193 uspace/lib/cpp/src/__bits/test/future.cpp s6 = p6.__state();
__state 308 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("reset causes refcount decrement", f2.__state()->refs(), 1);
__state 313 uspace/lib/cpp/src/__bits/test/future.cpp test("reset recreates state", (f2.__state() != f3.__state()));
__state 322 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("shared state moved on share", sf1.__state(), s1);
__state 328 uspace/lib/cpp/src/__bits/test/future.cpp test_eq("shared state shared between copies", sf1.__state(), sf2.__state());
HelenOS homepage, sources at GitHub