Lines Matching defs:future
20 #include <future>
50 // We use a pointer for this future, because otherwise its normal destructor
53 std::future<void> *future =
54 new std::future<void>(std::async(std::launch::async, [&]() {
61 if (future->wait_for(timeout) == std::future_status::timeout || !line)
62 // Indeed this is a leak, but it's intentional. "future" obj destructor
72 delete future;
79 std::future<void> *future =
80 new std::future<void>(std::async(std::launch::async, [&]() {
85 if (future->wait_for(timeout) == std::future_status::timeout || !done) {
86 // Indeed this is a leak, but it's intentional. "future" obj destructor will
97 delete future;