Lines Matching defs:promise
248 std::promise<int> promise;
257 future_ = promise.get_future();
258 task_ = std::make_unique<std::thread>([this, param, promise = std::move(promise)]() mutable {
259 this->NfcTaskThread(param, std::move(promise));
262 rootTask_ = std::make_unique<std::thread>([this, param, promise = std::move(promise)]() mutable {
263 this->NfcTaskThread(param, std::move(promise));
269 void NfcService::NfcTaskThread(KITS::NfcTask params, std::promise<int> promise)
285 promise.set_value_at_thread_exit(0);