Searched refs:wait_func (Results 1 – 3 of 3) sorted by relevance
92 auto wait_func = [&] { return pred() || should_exit(); }; in WaitCond()95 cond_.wait(lock, wait_func); in WaitCond()98 ret = cond_.wait_for(lock, timeout, wait_func); in WaitCond()114 auto wait_func = [&] { return !queue_.empty(); }; in Routine()116 WaitCond(lk, wait_func, idled_out_ ? kTimeoutDisabled : idle_timeout_ms_); in Routine()144 auto wait_func = [&] { return queue_.size() < max_queue_size_; }; in QueueWork()145 int ret = WaitCond(lk, wait_func, queue_timeout_ms_); in QueueWork()
39 FlushRequest(std::function<bool(void)> wait_func) : wait_func_(wait_func) {} in FlushRequest() argument
82 def _test_wait_multiple(self, wait_func): argument86 wait_func()98 def _test_wait_single(self, wait_func): argument100 wait_func(proc.pid)