Home
last modified time | relevance | path

Searched refs:wait_time (Results 1 – 25 of 66) sorted by relevance

123

/third_party/boost/libs/thread/test/
Dtest_6130.cpp29 const time_t wait_time = now_time+1; in main() local
31 assert(now_time < wait_time); in main()
35 (void)cv.timed_wait(lk, from_time_t(wait_time)); in main()
39 std::cerr << "wait_time=" << wait_time << " \n"; in main()
42 std::cerr << "wait_time=" << from_time_t(wait_time) << " \n"; in main()
43 std::cerr << end_time - wait_time << " \n"; in main()
44 assert(end_time >= wait_time); in main()
Dtest_9079_b.cpp74 const TimePoint::duration wait_time = next_spawn_time - now; in main() local
75 if (wait_time > wait_time.zero()) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/
D6-1.c111 struct timeval wait_time; in main() local
168 wait_time.tv_sec = after_wait.tv_sec - before_wait.tv_sec; in main()
169 wait_time.tv_usec = after_wait.tv_usec - before_wait.tv_usec; in main()
170 if (wait_time.tv_usec < 0) { in main()
171 --wait_time.tv_sec; in main()
172 wait_time.tv_usec += 1000000; in main()
174 if (wait_time.tv_sec < TIMEOUT) { in main()
177 TIMEOUT, (long int)wait_time.tv_sec, in main()
178 (long int)wait_time.tv_usec); in main()
/third_party/mindspore/mindspore/_extends/parallel_compile/akg_compiler/
Dakg_process.py72 def create_akg_parallel_process(process_num, wait_time, platform): argument
79 return AkgProcess(process_num, wait_time, platform)
85 def __init__(self, process_num, wait_time, platform): argument
93 if not isinstance(wait_time, int):
100 self.wait_time = wait_time
116 res.get(timeout=self.wait_time)
120 res.get(timeout=self.wait_time)
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Ddpp_supplicant.c116 unsigned int wait_time, max_tries; in wpas_dpp_auth_resp_retry() local
135 wait_time = wpa_s->dpp_resp_retry_time; in wpas_dpp_auth_resp_retry()
137 wait_time = 1000; in wpas_dpp_auth_resp_retry()
140 wait_time); in wpas_dpp_auth_resp_retry()
142 eloop_register_timeout(wait_time / 1000, in wpas_dpp_auth_resp_retry()
143 (wait_time % 1000) * 1000, in wpas_dpp_auth_resp_retry()
255 unsigned int wait_time, diff_ms; in wpas_dpp_reply_wait_timeout() local
260 wait_time = wpa_s->dpp_resp_wait_time ? in wpas_dpp_reply_wait_timeout()
267 wait_time, diff_ms); in wpas_dpp_reply_wait_timeout()
269 if (auth->auth_req_ack && diff_ms >= wait_time) { in wpas_dpp_reply_wait_timeout()
[all …]
Doffchannel.c261 const u8 *buf, size_t len, unsigned int wait_time, in offchannel_send_action() argument
312 wpa_s->action_tx_wait_time = wait_time; in offchannel_send_action()
313 if (wait_time) in offchannel_send_action()
318 wait_time, wpa_s->pending_action_dst, in offchannel_send_action()
361 if (wait_time > wpa_s->max_remain_on_chan) in offchannel_send_action()
362 wait_time = wpa_s->max_remain_on_chan; in offchannel_send_action()
363 else if (wait_time == 0) in offchannel_send_action()
364 wait_time = 20; in offchannel_send_action()
368 wait_time, wait_time + wpa_s->extra_roc_dur); in offchannel_send_action()
369 wait_time += wpa_s->extra_roc_dur; in offchannel_send_action()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Doffchannel.c261 const u8 *buf, size_t len, unsigned int wait_time, in offchannel_send_action() argument
312 wpa_s->action_tx_wait_time = wait_time; in offchannel_send_action()
313 if (wait_time) in offchannel_send_action()
318 wait_time, wpa_s->pending_action_dst, in offchannel_send_action()
361 if (wait_time > wpa_s->max_remain_on_chan) in offchannel_send_action()
362 wait_time = wpa_s->max_remain_on_chan; in offchannel_send_action()
363 else if (wait_time == 0) in offchannel_send_action()
364 wait_time = 20; in offchannel_send_action()
368 wait_time, wait_time + wpa_s->extra_roc_dur); in offchannel_send_action()
369 wait_time += wpa_s->extra_roc_dur; in offchannel_send_action()
[all …]
Ddpp_supplicant.c214 unsigned int wait_time, max_tries; in wpas_dpp_auth_resp_retry() local
233 wait_time = wpa_s->dpp_resp_retry_time; in wpas_dpp_auth_resp_retry()
235 wait_time = 1000; in wpas_dpp_auth_resp_retry()
238 wait_time); in wpas_dpp_auth_resp_retry()
240 eloop_register_timeout(wait_time / 1000, in wpas_dpp_auth_resp_retry()
241 (wait_time % 1000) * 1000, in wpas_dpp_auth_resp_retry()
264 unsigned int wait_time) in wpas_dpp_stop_listen_for_tx() argument
279 if (wpa_s->dpp_listen_freq == freq && remaining > wait_time) in wpas_dpp_stop_listen_for_tx()
284 wpa_s->dpp_listen_freq, remaining, freq, wait_time); in wpas_dpp_stop_listen_for_tx()
550 unsigned int wait_time, diff_ms; in wpas_dpp_reply_wait_timeout() local
[all …]
/third_party/grpc/src/core/lib/iomgr/executor/
Dmpmcqueue.cc36 gpr_timespec wait_time = in PopFront() local
39 stats_.total_queue_time = gpr_time_add(stats_.total_queue_time, wait_time); in PopFront()
41 gpr_convert_clock_type(stats_.max_queue_time, GPR_TIMESPAN), wait_time); in PopFront()
143 void* InfLenFIFOQueue::Get(gpr_timespec* wait_time) { in Get() argument
149 wait_time != nullptr) { in Get()
160 wait_time != nullptr) { in Get()
161 *wait_time = gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), start_time); in Get()
Dthreadpool.cc31 gpr_timespec wait_time = gpr_time_0(GPR_TIMESPAN); in Run() local
32 elem = queue_->Get(&wait_time); in Run()
33 stats_.sleep_time = gpr_time_add(stats_.sleep_time, wait_time); in Run()
Dmpmcqueue.h45 virtual void* Get(gpr_timespec* wait_time) = 0;
68 void* Get(gpr_timespec* wait_time) override;
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Ddpp_hostapd.c89 unsigned int wait_time, max_tries; in hostapd_dpp_auth_resp_retry() local
109 wait_time = hapd->dpp_resp_retry_time; in hostapd_dpp_auth_resp_retry()
111 wait_time = 1000; in hostapd_dpp_auth_resp_retry()
114 wait_time); in hostapd_dpp_auth_resp_retry()
116 eloop_register_timeout(wait_time / 1000, in hostapd_dpp_auth_resp_retry()
117 (wait_time % 1000) * 1000, in hostapd_dpp_auth_resp_retry()
215 unsigned int wait_time, diff_ms; in hostapd_dpp_reply_wait_timeout() local
220 wait_time = hapd->dpp_resp_wait_time ? in hostapd_dpp_reply_wait_timeout()
227 wait_time, diff_ms); in hostapd_dpp_reply_wait_timeout()
229 if (auth->auth_req_ack && diff_ms >= wait_time) { in hostapd_dpp_reply_wait_timeout()
[all …]
Daccounting.c464 unsigned int i, wait_time; in accounting_interim_error_cb() local
491 wait_time = 0; in accounting_interim_error_cb()
493 wait_time = 3; /* RADIUS_CLIENT_FIRST_WAIT */ in accounting_interim_error_cb()
495 wait_time *= 2; in accounting_interim_error_cb()
497 res = eloop_deplete_timeout(wait_time, 0, accounting_interim_update, in accounting_interim_error_cb()
503 MAC2STR(addr), sta->acct_interim_errors, wait_time); in accounting_interim_error_cb()
/third_party/boost/boost/process/detail/windows/
Dwait_group.hpp20 …l wait_impl(const group_handle & p, std::error_code & ec, std::chrono::system_clock::rep wait_time) in wait_impl() argument
30 … &completion_key, &overlapped, static_cast<::boost::winapi::DWORD_>(wait_time))) in wait_impl()
51 if (wait_time != static_cast<int>(::boost::winapi::infinite)) in wait_impl()
55 wait_time -= static_cast<std::chrono::system_clock::rep>(diff.count()); in wait_impl()
57 if (wait_time <= 0) in wait_impl()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Ddpp_hostapd.c186 unsigned int wait_time, max_tries; in hostapd_dpp_auth_resp_retry() local
206 wait_time = hapd->dpp_resp_retry_time; in hostapd_dpp_auth_resp_retry()
208 wait_time = 1000; in hostapd_dpp_auth_resp_retry()
211 wait_time); in hostapd_dpp_auth_resp_retry()
213 eloop_register_timeout(wait_time / 1000, in hostapd_dpp_auth_resp_retry()
214 (wait_time % 1000) * 1000, in hostapd_dpp_auth_resp_retry()
329 unsigned int wait_time, diff_ms; in hostapd_dpp_reply_wait_timeout() local
334 wait_time = hapd->dpp_resp_wait_time ? in hostapd_dpp_reply_wait_timeout()
341 wait_time, diff_ms); in hostapd_dpp_reply_wait_timeout()
343 if (auth->auth_req_ack && diff_ms >= wait_time) { in hostapd_dpp_reply_wait_timeout()
[all …]
Daccounting.c464 unsigned int i, wait_time; in accounting_interim_error_cb() local
491 wait_time = 0; in accounting_interim_error_cb()
493 wait_time = 3; /* RADIUS_CLIENT_FIRST_WAIT */ in accounting_interim_error_cb()
495 wait_time *= 2; in accounting_interim_error_cb()
497 res = eloop_deplete_timeout(wait_time, 0, accounting_interim_update, in accounting_interim_error_cb()
503 MAC2STR(addr), sta->acct_interim_errors, wait_time); in accounting_interim_error_cb()
/third_party/mindspore/mindspore/dataset/utils/
Dbrowse_dataset.py37 wait_time=2000, argument
101 assert isinstance(wait_time, int), "wait_time must be a int."
102 assert wait_time >= 0, "wait_time must be larger than or equal to zero."
146 if cv2.waitKey(wait_time) == 27:
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/
Dp2p_dev_disc.c71 unsigned int wait_time; in p2p_send_dev_disc_req() local
92 wait_time = 1000; in p2p_send_dev_disc_req()
93 if (p2p->cfg->max_listen && wait_time > p2p->cfg->max_listen) in p2p_send_dev_disc_req()
94 wait_time = p2p->cfg->max_listen; in p2p_send_dev_disc_req()
97 wpabuf_head(req), wpabuf_len(req), wait_time) < 0) { in p2p_send_dev_disc_req()
Dp2p_sd.c278 unsigned int wait_time; in p2p_start_sd() local
312 wait_time = 5000; in p2p_start_sd()
313 if (p2p->cfg->max_listen && wait_time > p2p->cfg->max_listen) in p2p_start_sd()
314 wait_time = p2p->cfg->max_listen; in p2p_start_sd()
317 wpabuf_head(req), wpabuf_len(req), wait_time) < 0) { in p2p_start_sd()
429 unsigned int wait_time = 200; in p2p_sd_response() local
464 wait_time = 0; /* no more SD frames in the sequence */ in p2p_sd_response()
475 wpabuf_head(resp), wpabuf_len(resp), wait_time) < 0) in p2p_sd_response()
628 unsigned int wait_time = 200; in p2p_rx_gas_comeback_req() local
681 wait_time = 0; /* no more SD frames in the sequence */ in p2p_rx_gas_comeback_req()
[all …]
/third_party/gstreamer/gstplugins_good/tests/icles/
Dvideocrop-test.c94 GstClockTime wait_time, waited_for_block; in test_with_caps() local
99 wait_time = GST_SECOND / FRAMERATE; in test_with_caps()
119 if (wait_time > waited_for_block) { in test_with_caps()
120 g_usleep ((wait_time - waited_for_block) / GST_MSECOND); in test_with_caps()
123 time_run += wait_time; in test_with_caps()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/
Dp2p_dev_disc.c71 unsigned int wait_time; in p2p_send_dev_disc_req() local
92 wait_time = 1000; in p2p_send_dev_disc_req()
93 if (p2p->cfg->max_listen && wait_time > p2p->cfg->max_listen) in p2p_send_dev_disc_req()
94 wait_time = p2p->cfg->max_listen; in p2p_send_dev_disc_req()
97 wpabuf_head(req), wpabuf_len(req), wait_time) < 0) { in p2p_send_dev_disc_req()
Dp2p_sd.c278 unsigned int wait_time; in p2p_start_sd() local
312 wait_time = 5000; in p2p_start_sd()
313 if (p2p->cfg->max_listen && wait_time > p2p->cfg->max_listen) in p2p_start_sd()
314 wait_time = p2p->cfg->max_listen; in p2p_start_sd()
317 wpabuf_head(req), wpabuf_len(req), wait_time) < 0) { in p2p_start_sd()
429 unsigned int wait_time = 200; in p2p_sd_response() local
464 wait_time = 0; /* no more SD frames in the sequence */ in p2p_sd_response()
475 wpabuf_head(resp), wpabuf_len(resp), wait_time) < 0) in p2p_sd_response()
628 unsigned int wait_time = 200; in p2p_rx_gas_comeback_req() local
681 wait_time = 0; /* no more SD frames in the sequence */ in p2p_rx_gas_comeback_req()
[all …]
/third_party/boost/boost/interprocess/sync/detail/
Dcommon_algorithms.hpp79 boost::posix_time::ptime wait_time in timeout_when_locking_aware_lock() local
82 if (!m.timed_lock(wait_time)) in timeout_when_locking_aware_lock()
/third_party/NuttX/fs/vfs/
Dfs_poll.c454 struct timespec wait_time; in poll() local
470 wait_time.tv_sec = millisecs_left / MSEC_PER_SEC; in poll()
471 wait_time.tv_nsec = (millisecs_left - MSEC_PER_SEC * wait_time.tv_sec) * NSEC_PER_MSEC; in poll()
473 ret = wait_sem_time(wait_table.wait, &wait_time); in poll()
/third_party/boost/libs/regex/example/timer/
Dregex_timer.cpp153 double wait_time = (std::min)(t.elapsed_min() * 1000, 0.5); in main() local
227 }while(tim < wait_time); in main()
261 }while(tim < wait_time); in main()
299 }while(tim < wait_time); in main()
336 }while(tim < wait_time); in main()

123