Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 8 of 8) sorted by relevance

/bionic/libc/bionic/
Dposix_timers.cpp69 static __kernel_timer_t to_kernel_timer_id(timer_t timer) { in to_kernel_timer_id() argument
70 return reinterpret_cast<PosixTimer*>(timer)->kernel_timer_id; in to_kernel_timer_id()
74 PosixTimer* timer = reinterpret_cast<PosixTimer*>(arg); in __timer_thread_start() local
88 if (atomic_load(&timer->deleted) == true) { in __timer_thread_start()
91 timer->callback(timer->callback_argument); in __timer_thread_start()
94 free(timer); in __timer_thread_start()
100 static void __timer_thread_stop(PosixTimer* timer) { in __timer_thread_stop() argument
101 atomic_store(&timer->deleted, true); in __timer_thread_stop()
102 pthread_kill(timer->callback_thread, TIMER_SIGNAL); in __timer_thread_stop()
107 PosixTimer* timer = reinterpret_cast<PosixTimer*>(malloc(sizeof(PosixTimer))); in timer_create() local
[all …]
Dlibc_init_common.cpp115 static timer_t timer; in __libc_init_mte_late() local
122 timer_delete(timer); in __libc_init_mte_late()
125 if (timer_create(CLOCK_REALTIME, &event, &timer) == -1) { in __libc_init_mte_late()
137 if (timer_settime(timer, /* flags= */ 0, &timerspec, nullptr) == -1) { in __libc_init_mte_late()
143 timer_delete(timer); in __libc_init_mte_late()
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c67 evTimer * timer; member
252 ctx->cur->u.timer.this == del) { in evClearTimer()
284 evTimer *timer = id.opaque; in evConfigTimer() local
289 if (heap_element(ctx->timers, timer->index) != timer) in evConfigTimer()
293 timer->mode |= EV_TMR_RATE; in evConfigTimer()
295 timer->mode &= ~EV_TMR_RATE; in evConfigTimer()
311 evTimer *timer = id.opaque; in evResetTimer() local
315 if (heap_element(ctx->timers, timer->index) != timer) in evResetTimer()
335 old_due = timer->due; in evResetTimer()
337 timer->func = func; in evResetTimer()
[all …]
Dev_streams.c135 evTimeRW(evContext opaqueCtx, evStreamID id, evTimerID timer) /*ARGSUSED*/ { in evTimeRW() argument
140 str->timer = timer; in evTimeRW()
279 evTouchIdleTimer(opaqueCtx, str->timer); in writable()
302 evTouchIdleTimer(opaqueCtx, str->timer); in readable()
Deventlib_p.h130 evTimerID timer; member
174 struct { evTimer *this; } timer; member
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_IDLETIMER.h27 struct idletimer_tg * timer __attribute__((aligned(8))); member
34 struct idletimer_tg * timer __attribute__((aligned(8))); member
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Deventlib.h142 int evTimeRW __P((evContext, evStreamID, evTimerID timer));
/bionic/libc/kernel/uapi/linux/
Dkvm.h1415 } timer; member