Lines Matching defs:std
63 * is only required in the same process, consider using std::future, std::mutex,
64 * std::condition_variable, or std::experimental::latch instead.
82 * @return Status std::cv_status::no_timeout if the callback was notified
83 * before the time duration expired, std::cv_status::timeout
87 std::cv_status wait_for(const std::chrono::duration<Rep,Period>& timeout_duration);
93 * return std::cv_status::timeout before CallbackBase::notify is called for
113 bool on_finish(std::function<bool(void)> post_work);
119 * The thread must be passed using std::move.
127 * std::cv_status::no_timeout.
141 bool bind_thread(std::thread&& asyncThread);
171 std::mutex mMutex;
172 std::condition_variable mCondition;
173 std::function<bool(void)> mPostWork;
174 std::thread mThread;
316 std::cv_status CallbackBase::wait_for(const std::chrono::duration<Rep,Period>& timeout_duration) {
317 std::unique_lock<std::mutex> lock(mMutex);
318 std::cv_status status = mCondition.wait_for(lock, timeout_duration, [this]{return mNotified;});
319 if (status != std::cv_status::timeout) {