| /third_party/vk-gl-cts/framework/delibs/deutil/ |
| D | deTimer.c | 21 * \brief Periodic timer. 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() [all …]
|
| /third_party/alsa-lib/src/timer/ |
| D | timer.c | 2 * \file timer/timer.c 3 * \brief Timer Interface 7 * Timer Interface is designed to access timers. 8 * See \ref timer page for more details. 11 * Timer Interface - main file 31 /*! \page timer Timer interface 33 <P> Timer interface is designed to use internal timers in sound hardware, but 34 it can be driven with any timer. 38 The timer implementation uses ring buffer to store information about timing 44 Timer devices can be opened in two ways. When #SND_TIMER_OPEN_NONBLOCK flag [all …]
|
| D | timer_query.c | 2 * \file timer/timer_query.c 6 * Timer Query Interface is designed to obtain identification of timers. 9 * Timer Query Interface - main file 31 static int snd_timer_query_open_conf(snd_timer_query_t **timer, in snd_timer_query_open_conf() argument 49 SNDERR("Invalid type for TIMER %s definition", name); in snd_timer_query_open_conf() 51 SNDERR("Invalid type for TIMER definition"); in snd_timer_query_open_conf() 72 SNDERR("Invalid type for TIMER type %s definition", str); in snd_timer_query_open_conf() 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 [all …]
|
| D | timer_local.h | 2 * Timer interface - local header file 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); [all …]
|
| /third_party/libinput/src/ |
| D | timer.c | 33 #include "timer.h" 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() 47 ratelimit_init(&libinput->timer.expiry_in_past_limit, in libinput_timer_init() 52 libinput_timer_destroy(struct libinput_timer *timer) in libinput_timer_destroy() argument 54 if (timer->link.prev != NULL && timer->link.next != NULL && in libinput_timer_destroy() 55 !list_empty(&timer->link)) { in libinput_timer_destroy() [all …]
|
| /third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/ |
| D | hrtimer.h | 42 * Define the number of timer cycles in 1us. 77 * Structure of a node in a high-resolution timer queue. 85 * Enumerative structure of the high-resolution timer mode arguments. 90 HRTIMER_MODE_PINNED = 0x2, /**< Timer is bound to CPU. */ 95 * Enumerative structure of the return type of a high-resolution timer timeout callback function. 98 HRTIMER_NORESTART, /**< The timer will not be restarted.*/ 99 HRTIMER_RESTART /**< The timer must be restarted.*/ 105 * Define the function handler type of a high-resolution timer timeout callback function. 111 * Structure of parameters of a high-resolution timer API. 116 unsigned long state; /**< Timer working state. Not in use temporarily. */ [all …]
|
| D | timer.h | 55 static inline int timer_pending(const timer_list_t *timer) in timer_pending() argument 57 (void)timer; in timer_pending() 61 #define init_timer(timer) \ argument 62 linux_init_timer(timer) 64 #define add_timer(timer) \ argument 65 linux_add_timer(timer) 67 #define del_timer(timer) \ argument 68 linux_del_timer(timer) 70 #define mod_timer(timer, expires) \ argument 71 linux_mod_timer(timer, expires) [all …]
|
| /third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
| D | linux_timer.c | 32 #include "linux/timer.h" 36 void linux_init_timer(struct timer_list *timer) in linux_init_timer() argument 40 if (timer == NULL) { in linux_init_timer() 41 PRINTK("init_timer<error> timer is NULL\n"); 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() [all …]
|
| D | linux_hrtimer.c | 127 struct hrtimer timer; in HrtimerHandlerRun() local 143 timer._softexpires.tv.usec = hrtimer->_softexpires.tv.usec; in HrtimerHandlerRun() 144 timer._softexpires.tv.sec = hrtimer->_softexpires.tv.sec; in HrtimerHandlerRun() 150 timer.function = handler->pfnHandler; in HrtimerHandlerRun() 151 restart = handler->pfnHandler(&timer); in HrtimerHandlerRun() 180 STATIC VOID GetHandlerNodePosition(const struct hrtimer *timer, struct hrtimer_list_node *hrtimerNo… in GetHandlerNodePosition() argument 188 if ((curHandler->pfnHandler == timer->function) && in GetHandlerNodePosition() 189 (curHandler->_softexpires.tv.sec == timer->_softexpires.tv.sec) && in GetHandlerNodePosition() 190 (curHandler->_softexpires.tv.usec == timer->_softexpires.tv.usec)) { in GetHandlerNodePosition() 200 STATIC VOID GetHrtimerNodePosition(const struct hrtimer *timer, struct hrtimer_list_node **prevNode, in GetHrtimerNodePosition() argument [all …]
|
| /third_party/typescript/tests/baselines/reference/ |
| D | jsDeclarationsFunctionClassesCjsExportAssignment.js | 3 //// [timer.js] 7 function Timer(timeout) { class 10 module.exports = Timer; 27 * @typedef {import("./timer")} Timer 36 * @prop {Timer} timer 44 * @prop {Timer} timer 74 //// [timer.js] 78 function Timer(timeout) { 81 module.exports = Timer; 86 * @typedef {import("./timer")} Timer [all …]
|
| D | jsDeclarationsFunctionClassesCjsExportAssignment.symbols | 1 === tests/cases/conformance/jsdoc/declarations/timer.js === 5 function Timer(timeout) { 6 >Timer : Symbol(Timer, Decl(timer.js, 0, 0)) 7 >timeout : Symbol(timeout, Decl(timer.js, 3, 15)) 10 >this.timeout : Symbol(Timer.timeout, Decl(timer.js, 3, 25)) 11 >this : Symbol(Timer, Decl(timer.js, 0, 0)) 12 >timeout : Symbol(Timer.timeout, Decl(timer.js, 3, 25)) 13 >timeout : Symbol(timeout, Decl(timer.js, 3, 15)) 15 module.exports = Timer; 16 >module.exports : Symbol(module.exports, Decl(timer.js, 0, 0)) [all …]
|
| /third_party/grpc/src/core/lib/event_engine/posix_engine/ |
| D | timer.cc | 19 #include "src/core/lib/event_engine/posix_engine/timer.h" 70 void ListJoin(Timer* head, Timer* timer) { in ListJoin() argument 71 timer->next = head; in ListJoin() 72 timer->prev = head->prev; in ListJoin() 73 timer->next->prev = timer->prev->next = timer; in ListJoin() 76 void ListRemove(Timer* timer) { in ListRemove() argument 77 timer->next->prev = timer->prev; in ListRemove() 78 timer->prev->next = timer->next; in ListRemove() 107 void TimerList::TimerInit(Timer* timer, grpc_core::Timestamp deadline, in TimerInit() argument 110 Shard* shard = &shards_[grpc_core::HashPointer(timer, num_shards_)]; in TimerInit() [all …]
|
| D | timer.h | 41 struct Timer { struct 46 struct Timer* next; argument 47 struct Timer* prev; argument 50 struct Timer* hash_table_next; argument 77 // Initialize a Timer. 78 // When expired, the closure will be run. If the timer is canceled, the 81 void TimerInit(Timer* timer, grpc_core::Timestamp deadline, 84 // Cancel a Timer. 85 // Returns false if the timer cannot be canceled. This will happen if the 86 // timer has already fired, or if its closure is currently running. The [all …]
|
| D | timer_heap.h | 30 struct Timer; 34 // return true if the new timer is the first timer in the heap 35 bool Add(Timer* timer); 37 void Remove(Timer* timer); 38 Timer* Top(); 43 const std::vector<Timer*>& TestOnlyGetTimers() const { return timers_; } in TestOnlyGetTimers() 46 void AdjustUpwards(size_t i, Timer* t); 47 void AdjustDownwards(size_t i, Timer* t); 48 void NoteChangedPriority(Timer* timer); 50 std::vector<Timer*> timers_;
|
| D | timer_heap.cc | 26 #include "src/core/lib/event_engine/posix_engine/timer.h" 36 void TimerHeap::AdjustUpwards(size_t i, Timer* t) { in AdjustUpwards() 51 void TimerHeap::AdjustDownwards(size_t i, Timer* t) { in AdjustDownwards() 70 void TimerHeap::NoteChangedPriority(Timer* timer) { in NoteChangedPriority() argument 71 uint32_t i = timer->heap_index; in NoteChangedPriority() 73 if (timers_[parent]->deadline > timer->deadline) { in NoteChangedPriority() 74 AdjustUpwards(i, timer); in NoteChangedPriority() 76 AdjustDownwards(i, timer); in NoteChangedPriority() 80 bool TimerHeap::Add(Timer* timer) { in Add() argument 81 timer->heap_index = timers_.size(); in Add() [all …]
|
| /third_party/grpc/src/core/lib/iomgr/ |
| D | timer_generic.cc | 34 #include "src/core/lib/iomgr/timer.h" 49 // A "timer shard". Contains a 'heap' and a 'list' of timers. All timers with 54 // The 'queue_deadline_cap' gets recomputed periodically based on the timer 63 // The deadline of the next timer due in this shard. 75 // Array of timer shards. Whenever a timer (grpc_timer *) is added, its address 76 // is hashed to select the timer shard to add the timer to 79 // Maintains a sorted list of timer shards (sorted by their min_deadline, i.e 80 // the deadline of the next timer in each shard). 86 // == DEBUG ONLY: hash table for duplicate timer detection == 131 "** Duplicate timer (%p) being added. Closure: (%p), created at: " in add_to_ht() [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
| D | Timer.h | 1 //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===// 22 class Timer; variable 72 /// the Timer will print the amount of time it has captured to standard error 73 /// when the last timer is destroyed, otherwise it is printed when its 76 class Timer { 81 bool Running; ///< Is the timer currently running? 82 bool Triggered; ///< Has the timer ever been triggered? 83 TimerGroup *TG = nullptr; ///< The TimerGroup this Timer is in. 85 Timer **Prev; ///< Pointer to \p Next of previous timer in group. 86 Timer *Next; ///< Next timer in the group. [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
| D | Timer.h | 1 //===-- llvm/Support/Timer.h - Interval Timing Support ----------*- C++ -*-===// 22 class Timer; variable 72 /// the Timer will print the amount of time it has captured to standard error 73 /// when the last timer is destroyed, otherwise it is printed when its 76 class Timer { 81 bool Running = false; ///< Is the timer currently running? 82 bool Triggered = false; ///< Has the timer ever been triggered? 83 TimerGroup *TG = nullptr; ///< The TimerGroup this Timer is in. 85 Timer **Prev = nullptr; ///< Pointer to \p Next of previous timer in group. 86 Timer *Next = nullptr; ///< Next timer in the group. [all …]
|
| /third_party/alsa-lib/include/ |
| D | timer.h | 2 * \file include/timer.h 36 * \defgroup Timer Timer Interface 37 * Timer Interface. See \ref timer page for more details. 46 /** timer identification structure */ 48 /** timer global info structure */ 50 /** timer global params structure */ 52 /** timer global status structure */ 54 /** timer info structure */ 56 /** timer params structure */ 58 /** timer status structure */ [all …]
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/ |
| D | timer.h | 28 // function does nothing. Otherwise, it prints resource types measured by Timer 32 // calling Timer::Report() to inform what those fields printed by 33 // Timer::Report() indicate (or spvtools::utils::PrintTimerDescription() must be 52 spvtools::utils::ScopedTimer<spvtools::utils::Timer> timer##__LINE__( \ 58 // Prints the description of resource types measured by Timer class. If |out| is 62 // calling Timer::Report() to inform what those fields printed by 63 // Timer::Report() indicate. 66 // Status of Timer. kGetrusageFailed means it failed in calling getrusage(). 77 // Timer measures the resource utilization for a range of code. The resource 84 // spvtools::utils::Timer timer(std::cout); [all …]
|
| /third_party/spirv-tools/source/util/ |
| D | timer.h | 28 // function does nothing. Otherwise, it prints resource types measured by Timer 32 // calling Timer::Report() to inform what those fields printed by 33 // Timer::Report() indicate (or spvtools::utils::PrintTimerDescription() must be 52 spvtools::utils::ScopedTimer<spvtools::utils::Timer> timer##__LINE__( \ 58 // Prints the description of resource types measured by Timer class. If |out| is 62 // calling Timer::Report() to inform what those fields printed by 63 // Timer::Report() indicate. 66 // Status of Timer. kGetrusageFailed means it failed in calling getrusage(). 77 // Timer measures the resource utilization for a range of code. The resource 84 // spvtools::utils::Timer timer(std::cout); [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/source/util/ |
| D | timer.h | 28 // function does nothing. Otherwise, it prints resource types measured by Timer 32 // calling Timer::Report() to inform what those fields printed by 33 // Timer::Report() indicate (or spvtools::utils::PrintTimerDescription() must be 52 spvtools::utils::ScopedTimer<spvtools::utils::Timer> timer##__LINE__( \ 58 // Prints the description of resource types measured by Timer class. If |out| is 62 // calling Timer::Report() to inform what those fields printed by 63 // Timer::Report() indicate. 66 // Status of Timer. kGetrusageFailed means it failed in calling getrusage(). 77 // Timer measures the resource utilization for a range of code. The resource 84 // spvtools::utils::Timer timer(std::cout); [all …]
|
| /third_party/python/Lib/test/ |
| D | test_timeit.py | 39 def wrap_timer(self, timer): argument 40 """Records 'timer' and returns self as callable timer.""" 41 self.saved_timer = timer 73 self.assertRaises(ValueError, timeit.Timer, stmt=None) 74 self.assertRaises(SyntaxError, timeit.Timer, stmt='return') 75 self.assertRaises(SyntaxError, timeit.Timer, stmt='yield') 76 self.assertRaises(SyntaxError, timeit.Timer, stmt='yield from ()') 77 self.assertRaises(SyntaxError, timeit.Timer, stmt='break') 78 self.assertRaises(SyntaxError, timeit.Timer, stmt='continue') 79 self.assertRaises(SyntaxError, timeit.Timer, stmt='from timeit import *') [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_OK(uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 52 ASSERT_OK(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_EQ(1, uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 58 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() 60 r = uv_timer_stop(&timer); in TEST_IMPL() 63 ASSERT_OK(uv_is_active((uv_handle_t*) &timer)); in TEST_IMPL() 64 ASSERT_OK(uv_is_closing((uv_handle_t*) &timer)); in TEST_IMPL() [all …]
|
| /third_party/libuv/docs/src/ |
| D | timer.rst | 4 :c:type:`uv_timer_t` --- Timer handle 7 Timer handles are used to schedule callbacks to be called in the future. 15 Timer handle type. 39 Start the timer. `timeout` and `repeat` are in milliseconds. 48 If the timer is already active, it is simply updated. 52 Stop the timer, the callback will not be called anymore. 56 Stop the timer, and if it is repeating restart it using the repeat value 57 as the timeout. If the timer has never been started before it returns 62 Set the repeat interval value in milliseconds. The timer will be scheduled 64 duration, and will follow normal timer semantics in the case of a [all …]
|