/third_party/vk-gl-cts/framework/delibs/deutil/ |
D | deTimer.c | 39 HANDLE timer; member 44 const deTimer* timer = (const deTimer*)lpParameter; in timerCallback() local 47 timer->callback(timer->callbackArg); in timerCallback() 52 deTimer* timer = (deTimer*)deCalloc(sizeof(deTimer)); in deTimer_create() local 54 if (!timer) in deTimer_create() 57 timer->callback = callback; in deTimer_create() 58 timer->callbackArg = arg; in deTimer_create() 59 timer->timer = 0; in deTimer_create() 61 return timer; in deTimer_create() 64 void deTimer_destroy (deTimer* timer) in deTimer_destroy() argument [all …]
|
/third_party/gstreamer/gstplugins_good/gst/rtpmanager/ |
D | rtptimerqueue.c | 46 rtp_timer_set_next (RtpTimer * timer, RtpTimer * next) in rtp_timer_set_next() argument 48 GList *list = (GList *) timer; in rtp_timer_set_next() 53 rtp_timer_set_prev (RtpTimer * timer, RtpTimer * prev) in rtp_timer_set_prev() argument 55 GList *list = (GList *) timer; in rtp_timer_set_prev() 60 rtp_timer_is_later (RtpTimer * timer, RtpTimer * next) in rtp_timer_is_later() argument 66 if (!GST_CLOCK_TIME_IS_VALID (timer->timeout)) in rtp_timer_is_later() 69 if (timer->timeout > next->timeout) in rtp_timer_is_later() 73 if (timer->timeout == next->timeout && in rtp_timer_is_later() 74 gst_rtp_buffer_compare_seqnum (timer->seqnum, next->seqnum) < 0) in rtp_timer_is_later() 81 rtp_timer_is_sooner (RtpTimer * timer, RtpTimer * prev) in rtp_timer_is_sooner() argument [all …]
|
/third_party/libinput/src/ |
D | timer.c | 36 libinput_timer_init(struct libinput_timer *timer, in libinput_timer_init() argument 42 timer->libinput = libinput; in libinput_timer_init() 43 timer->timer_name = safe_strdup(timer_name); in libinput_timer_init() 44 timer->timer_func = timer_func; in libinput_timer_init() 45 timer->timer_func_data = timer_func_data; in libinput_timer_init() 49 libinput_timer_destroy(struct libinput_timer *timer) in libinput_timer_destroy() argument 51 if (timer->link.prev != NULL && timer->link.prev != NULL && in libinput_timer_destroy() 52 !list_empty(&timer->link)) { in libinput_timer_destroy() 53 log_bug_libinput(timer->libinput, in libinput_timer_destroy() 55 timer->timer_name); in libinput_timer_destroy() [all …]
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
D | linux_timer.c | 36 void linux_init_timer(struct timer_list *timer) in linux_init_timer() argument 40 if (timer == NULL) { in linux_init_timer() 44 LOS_SpinInit(&timer->lock); in linux_init_timer() 45 LOS_SpinLockSave(&timer->lock, &intSave); in linux_init_timer() 46 timer->flag = TIMER_UNVALID; in linux_init_timer() 47 LOS_SpinUnlockRestore(&timer->lock, intSave); in linux_init_timer() 50 STATIC UINT32 DoDeleteTimer(struct timer_list *timer) in DoDeleteTimer() argument 54 ret = LOS_SwtmrDelete(timer->timerid); in DoDeleteTimer() 56 timer->flag = TIMER_UNVALID; in DoDeleteTimer() 61 STATIC UINT32 DoAddTimer(struct timer_list *timer) in DoAddTimer() argument [all …]
|
D | linux_hrtimer.c | 133 struct hrtimer timer; in HrtimerHandlerRun() local 149 timer._softexpires.tv.usec = hrtimer->_softexpires.tv.usec; in HrtimerHandlerRun() 150 timer._softexpires.tv.sec = hrtimer->_softexpires.tv.sec; in HrtimerHandlerRun() 156 timer.function = handler->pfnHandler; in HrtimerHandlerRun() 157 restart = handler->pfnHandler(&timer); in HrtimerHandlerRun() 186 STATIC VOID GetHandlerNodePosition(const struct hrtimer *timer, struct hrtimer_list_node *hrtimerNo… in GetHandlerNodePosition() argument 194 if ((curHandler->pfnHandler == timer->function) && in GetHandlerNodePosition() 195 (curHandler->_softexpires.tv.sec == timer->_softexpires.tv.sec) && in GetHandlerNodePosition() 196 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv.usec)) { in GetHandlerNodePosition() 206 STATIC VOID GetHrtimerNodePosition(const struct hrtimer *timer, struct hrtimer_list_node **prevNode, in GetHrtimerNodePosition() argument [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | rtptimerqueue.c | 71 RtpTimer *timer, *next, *prev; in GST_START_TEST() local 78 timer = rtp_timer_queue_find (queue, 0); in GST_START_TEST() 79 fail_if (timer == NULL); in GST_START_TEST() 80 fail_unless_equals_int (0, timer->seqnum); in GST_START_TEST() 81 next = (RtpTimer *) timer->list.next; in GST_START_TEST() 82 prev = (RtpTimer *) timer->list.prev; in GST_START_TEST() 87 timer = rtp_timer_queue_find (queue, 3); in GST_START_TEST() 88 fail_if (timer == NULL); in GST_START_TEST() 89 fail_unless_equals_int (3, timer->seqnum); in GST_START_TEST() 90 next = (RtpTimer *) timer->list.next; in GST_START_TEST() [all …]
|
/third_party/alsa-lib/src/timer/ |
D | timer.c | 74 static int snd_timer_open_conf(snd_timer_t **timer, in snd_timer_open_conf() argument 169 err = open_func(timer, name, timer_root, timer_conf, mode); in snd_timer_open_conf() 173 (*timer)->dl_handle = h; in snd_timer_open_conf() 178 static int snd_timer_open_noupdate(snd_timer_t **timer, snd_config_t *root, const char *name, int m… in snd_timer_open_noupdate() argument 187 err = snd_timer_open_conf(timer, name, root, timer_conf, mode); in snd_timer_open_noupdate() 202 int snd_timer_open(snd_timer_t **timer, const char *name, int mode) in snd_timer_open() argument 207 assert(timer && name); in snd_timer_open() 217 err = snd_timer_open_noupdate(timer, top, name, mode); in snd_timer_open() 233 int snd_timer_open_lconf(snd_timer_t **timer, const char *name, in snd_timer_open_lconf() argument 236 assert(timer && name && lconf); in snd_timer_open_lconf() [all …]
|
D | timer_local.h | 28 int (*close)(snd_timer_t *timer); 29 int (*nonblock)(snd_timer_t *timer, int nonblock); 30 int (*async)(snd_timer_t *timer, int sig, pid_t pid); 31 int (*info)(snd_timer_t *timer, snd_timer_info_t *info); 32 int (*params)(snd_timer_t *timer, snd_timer_params_t *params); 33 int (*status)(snd_timer_t *timer, snd_timer_status_t *status); 34 int (*rt_start)(snd_timer_t *timer); 35 int (*rt_stop)(snd_timer_t *timer); 36 int (*rt_continue)(snd_timer_t *timer); 37 ssize_t (*read)(snd_timer_t *timer, void *buffer, size_t size); [all …]
|
D | timer_query.c | 31 static int snd_timer_query_open_conf(snd_timer_query_t **timer, in snd_timer_query_open_conf() argument 127 err = open_func(timer, name, timer_root, timer_conf, mode); in snd_timer_query_open_conf() 131 (*timer)->dl_handle = h; in snd_timer_query_open_conf() 136 static int snd_timer_query_open_noupdate(snd_timer_query_t **timer, snd_config_t *root, const char … in snd_timer_query_open_noupdate() argument 145 err = snd_timer_query_open_conf(timer, name, root, timer_conf, mode); in snd_timer_query_open_noupdate() 160 int snd_timer_query_open(snd_timer_query_t **timer, const char *name, int mode) in snd_timer_query_open() argument 165 assert(timer && name); in snd_timer_query_open() 169 err = snd_timer_query_open_noupdate(timer, top, name, mode); in snd_timer_query_open() 185 int snd_timer_query_open_lconf(snd_timer_query_t **timer, const char *name, in snd_timer_query_open_lconf() argument 188 assert(timer && name && lconf); in snd_timer_query_open_lconf() [all …]
|
/third_party/boost/libs/asio/include/boost/asio/detail/ |
D | timer_queue.hpp | 80 bool enqueue_timer(const time_type& time, per_timer_data& timer, wait_op* op) in enqueue_timer() argument 83 if (timer.prev_ == 0 && &timer != timers_) in enqueue_timer() 88 timer.heap_index_ = (std::numeric_limits<std::size_t>::max)(); in enqueue_timer() 94 timer.heap_index_ = heap_.size(); in enqueue_timer() 95 heap_entry entry = { time, &timer }; in enqueue_timer() 101 timer.next_ = timers_; in enqueue_timer() 102 timer.prev_ = 0; in enqueue_timer() 104 timers_->prev_ = &timer; in enqueue_timer() 105 timers_ = &timer; in enqueue_timer() 109 timer.op_queue_.push(op); in enqueue_timer() [all …]
|
/third_party/boost/boost/asio/detail/ |
D | timer_queue.hpp | 80 bool enqueue_timer(const time_type& time, per_timer_data& timer, wait_op* op) in enqueue_timer() argument 83 if (timer.prev_ == 0 && &timer != timers_) in enqueue_timer() 88 timer.heap_index_ = (std::numeric_limits<std::size_t>::max)(); in enqueue_timer() 94 timer.heap_index_ = heap_.size(); in enqueue_timer() 95 heap_entry entry = { time, &timer }; in enqueue_timer() 101 timer.next_ = timers_; in enqueue_timer() 102 timer.prev_ = 0; in enqueue_timer() 104 timers_->prev_ = &timer; in enqueue_timer() 105 timers_ = &timer; in enqueue_timer() 109 timer.op_queue_.push(op); in enqueue_timer() [all …]
|
/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/ |
D | timer.h | 57 static inline int timer_pending(const timer_list_t *timer) in timer_pending() argument 59 (void)timer; in timer_pending() 63 #define init_timer(timer) \ argument 64 linux_init_timer(timer) 66 #define add_timer(timer) \ argument 67 linux_add_timer(timer) 69 #define del_timer(timer) \ argument 70 linux_del_timer(timer) 72 #define mod_timer(timer, expires) \ argument 73 linux_mod_timer(timer, expires) [all …]
|
D | hrtimer.h | 150 #define hrtimer_init(timer, clockID, mode) \ argument 151 linux_hrtimer_init(timer, clockID, mode) 153 #define hrtimer_create(timer, time, handler) \ argument 154 linux_hrtimer_create(timer, time, handler) 156 #define hrtimer_start(timer, time, mode) \ argument 157 linux_hrtimer_start(timer, time, mode) 159 #define hrtimer_cancel(timer) \ argument 160 linux_hrtimer_cancel(timer) 162 #define hrtimer_forward(timer, interval) \ argument 163 linux_hrtimer_forward(timer, interval) [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/timer/ |
D | SDL_timer.c | 45 SDL_Timer *timer; member 80 SDL_AddTimerInternal(SDL_TimerData *data, SDL_Timer *timer) in SDL_AddTimerInternal() argument 86 if ((Sint32)(timer->scheduled-curr->scheduled) < 0) { in SDL_AddTimerInternal() 93 prev->next = timer; in SDL_AddTimerInternal() 95 data->timers = timer; in SDL_AddTimerInternal() 97 timer->next = curr; in SDL_AddTimerInternal() 241 SDL_Timer *timer; in SDL_TimerQuit() local 257 timer = data->timers; in SDL_TimerQuit() 258 data->timers = timer->next; in SDL_TimerQuit() 259 SDL_free(timer); in SDL_TimerQuit() [all …]
|
/third_party/node/test/parallel/ |
D | test-timers-refresh.js | 20 const timer = setTimeout(common.mustCall(() => { constant 23 timer.unref(); 31 strictEqual(timer.refresh(), timer); 50 const timer = setUnrefTimeout(common.mustCall(() => { constant 58 strictEqual(timer.refresh(), timer); 64 const timer = setTimeout(common.mustCall(() => { constant 72 strictEqual(timer.refresh(), timer); 78 const timer = setTimeout(common.mustCall(() => { constant 82 timer.refresh(); 83 strictEqual(timer.hasRef(), true); [all …]
|
/third_party/libuv/test/ |
D | test-active.c | 45 uv_timer_t timer; in TEST_IMPL() local 47 r = uv_timer_init(uv_default_loop(), &timer); in TEST_IMPL() 51 ASSERT(0 == uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 52 ASSERT(0 == uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() 54 r = uv_timer_start(&timer, timer_cb, 1000, 0); in TEST_IMPL() 57 ASSERT(1 == uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 58 ASSERT(0 == uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() 60 r = uv_timer_stop(&timer); in TEST_IMPL() 63 ASSERT(0 == uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 64 ASSERT(0 == uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() [all …]
|
/third_party/glib/glib/tests/ |
D | timer.c | 32 GTimer *timer; in test_timer_basic() local 36 timer = g_timer_new (); in test_timer_basic() 38 elapsed = g_timer_elapsed (timer, µs); in test_timer_basic() 43 g_timer_destroy (timer); in test_timer_basic() 49 GTimer *timer; in test_timer_stop() local 52 timer = g_timer_new (); in test_timer_stop() 54 g_timer_stop (timer); in test_timer_stop() 56 elapsed = g_timer_elapsed (timer, NULL); in test_timer_stop() 58 elapsed2 = g_timer_elapsed (timer, NULL); in test_timer_stop() 62 g_timer_destroy (timer); in test_timer_stop() [all …]
|
/third_party/glib/glib/ |
D | gtimer.c | 92 GTimer *timer; in g_timer_new() local 94 timer = g_new (GTimer, 1); in g_timer_new() 95 timer->active = TRUE; in g_timer_new() 97 timer->start = g_get_monotonic_time (); in g_timer_new() 99 return timer; in g_timer_new() 109 g_timer_destroy (GTimer *timer) in g_timer_destroy() argument 111 g_return_if_fail (timer != NULL); in g_timer_destroy() 113 g_free (timer); in g_timer_destroy() 126 g_timer_start (GTimer *timer) in g_timer_start() argument 128 g_return_if_fail (timer != NULL); in g_timer_start() [all …]
|
/third_party/grpc/src/core/lib/iomgr/ |
D | timer_generic.cc | 317 static void list_join(grpc_timer* head, grpc_timer* timer) { in list_join() argument 318 timer->next = head; in list_join() 319 timer->prev = head->prev; in list_join() 320 timer->next->prev = timer->prev->next = timer; in list_join() 323 static void list_remove(grpc_timer* timer) { in list_remove() argument 324 timer->next->prev = timer->prev; in list_remove() 325 timer->prev->next = timer->next; in list_remove() 353 void grpc_timer_init_unset(grpc_timer* timer) { timer->pending = false; } in grpc_timer_init_unset() argument 355 static void timer_init(grpc_timer* timer, grpc_millis deadline, in timer_init() argument 358 timer_shard* shard = &g_shards[GPR_HASH_POINTER(timer, g_num_shards)]; in timer_init() [all …]
|
D | timer_custom.cc | 37 grpc_timer* timer = t->original; in grpc_custom_timer_callback() local 38 GPR_ASSERT(timer->pending); in grpc_custom_timer_callback() 39 timer->pending = false; in grpc_custom_timer_callback() 40 grpc_core::ExecCtx::Run(DEBUG_LOCATION, timer->closure, GRPC_ERROR_NONE); in grpc_custom_timer_callback() 45 static void timer_init(grpc_timer* timer, grpc_millis deadline, in timer_init() argument 52 timer->pending = false; in timer_init() 57 timer->pending = true; in timer_init() 58 timer->closure = closure; in timer_init() 62 timer->custom_timer = timer_wrapper; in timer_init() 63 timer_wrapper->original = timer; in timer_init() [all …]
|
/third_party/pixman/pixman/ |
D | pixman-timer.c | 37 pixman_timer_t *timer; in dump_timers() local 39 for (timer = timers; timer != NULL; timer = timer->next) in dump_timers() 42 timer->name, in dump_timers() 43 timer->total, in dump_timers() 44 timer->n_times, in dump_timers() 45 timer->total / (double)timer->n_times); in dump_timers() 50 pixman_timer_register (pixman_timer_t *timer) in pixman_timer_register() argument 62 timer->next = timers; in pixman_timer_register() 63 timers = timer; in pixman_timer_register()
|
/third_party/node/lib/internal/ |
D | timers.js | 376 const timer = new Timeout(callback, after, undefined, false, false); 377 insert(timer, timer._idleTimeout); 379 return timer; 511 let timer; 512 while (timer = L.peek(list)) { 513 const diff = now - timer._idleStart; 518 list.expiry = MathMax(timer._idleStart + msecs, now + 1); 531 L.remove(timer); 533 const asyncId = timer[async_id_symbol]; 535 if (!timer._onTimeout) { [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/tools/ctestfw/unicode/ |
D | utimer.h | 172 static int uprv_initFrequency(UTimer* timer) in uprv_initFrequency() argument 174 return QueryPerformanceFrequency(&timer->placeHolder); in uprv_initFrequency() 176 static void uprv_start(UTimer* timer) in uprv_start() argument 178 QueryPerformanceCounter(&timer->start); in uprv_start() 198 static void uprv_start(UTimer* timer) in uprv_start() argument 200 gettimeofday(&timer->start, 0); in uprv_start() 220 utimer_getTime(UTimer* timer){ in utimer_getTime() argument 221 uprv_initFrequency(timer); in utimer_getTime() 222 uprv_start(timer); in utimer_getTime() 249 utimer_getElapsedSeconds(UTimer* timer){ in utimer_getElapsedSeconds() argument [all …]
|
/third_party/icu/icu4c/source/tools/ctestfw/unicode/ |
D | utimer.h | 172 static int uprv_initFrequency(UTimer* timer) in uprv_initFrequency() argument 174 return QueryPerformanceFrequency(&timer->placeHolder); in uprv_initFrequency() 176 static void uprv_start(UTimer* timer) in uprv_start() argument 178 QueryPerformanceCounter(&timer->start); in uprv_start() 198 static void uprv_start(UTimer* timer) in uprv_start() argument 200 gettimeofday(&timer->start, 0); in uprv_start() 220 utimer_getTime(UTimer* timer){ in utimer_getTime() argument 221 uprv_initFrequency(timer); in utimer_getTime() 222 uprv_start(timer); in utimer_getTime() 249 utimer_getElapsedSeconds(UTimer* timer){ in utimer_getElapsedSeconds() argument [all …]
|
/third_party/skia/third_party/externals/icu/source/tools/ctestfw/unicode/ |
D | utimer.h | 172 static int uprv_initFrequency(UTimer* timer) in uprv_initFrequency() argument 174 return QueryPerformanceFrequency(&timer->placeHolder); in uprv_initFrequency() 176 static void uprv_start(UTimer* timer) in uprv_start() argument 178 QueryPerformanceCounter(&timer->start); in uprv_start() 198 static void uprv_start(UTimer* timer) in uprv_start() argument 200 gettimeofday(&timer->start, 0); in uprv_start() 220 utimer_getTime(UTimer* timer){ in utimer_getTime() argument 221 uprv_initFrequency(timer); in utimer_getTime() 222 uprv_start(timer); in utimer_getTime() 249 utimer_getElapsedSeconds(UTimer* timer){ in utimer_getElapsedSeconds() argument [all …]
|