Home
last modified time | relevance | path

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

1234

/glibc-2.36/sysdeps/htl/
Dtimer_routines.c290 thread_expire_timer (struct thread_node *self, struct timer_node *timer) in thread_expire_timer() argument
292 self->current_timer = timer; /* Lets timer_delete know timer is running. */ in thread_expire_timer()
296 switch (__builtin_expect (timer->event.sigev_notify, SIGEV_SIGNAL)) in thread_expire_timer()
311 info.si_signo = timer->event.sigev_signo; in thread_expire_timer()
313 info.si_pid = timer->creator_pid; in thread_expire_timer()
315 info.si_value = timer->event.sigev_value; in thread_expire_timer()
320 if (pthread_kill (self->captured, timer->event.sigev_signo) != 0) in thread_expire_timer()
322 if (pthread_kill (self->id, timer->event.sigev_signo) != 0) in thread_expire_timer()
329 timer->event.sigev_notify_function (timer->event.sigev_value); in thread_expire_timer()
366 struct timer_node *timer = NULL; in thread_func() local
[all …]
/glibc-2.36/rt/
Dtimer_settime.c30 struct timer_node *timer; in timer_settime() local
36 timer = timer_id2ptr (timerid); in timer_settime()
37 if (timer == NULL) in timer_settime()
55 __clock_gettime (timer->clock, &now); in timer_settime()
60 timer_addref (timer); in timer_settime()
65 if (! timer_valid(timer)) in timer_settime()
73 ovalue->it_interval = timer->value.it_interval; in timer_settime()
75 if (timer->armed) in timer_settime()
80 __clock_gettime (timer->clock, &now); in timer_settime()
83 timer_addref (timer); in timer_settime()
[all …]
Dtimer_delete.c30 struct timer_node *timer; in timer_delete() local
35 timer = timer_id2ptr (timerid); in timer_delete()
36 if (! timer_valid (timer)) in timer_delete()
41 if (timer->armed && timer->thread != NULL) in timer_delete()
43 struct thread_node *thread = timer->thread; in timer_delete()
51 while (thread->current_timer == timer) in timer_delete()
58 timer->inuse = TIMER_DELETED; in timer_delete()
59 list_unlink_ip (&timer->links); in timer_delete()
60 timer_delref (timer); in timer_delete()
Dtimer_gettime.c29 struct timer_node *timer; in timer_gettime() local
36 timer = timer_id2ptr (timerid); in timer_gettime()
37 valid = timer_valid (timer); in timer_gettime()
40 armed = timer->armed; in timer_gettime()
41 expiry = timer->expirytime; in timer_gettime()
42 clock = timer->clock; in timer_gettime()
43 value->it_interval = timer->value.it_interval; in timer_gettime()
Dtst-mqueue10.c59 timer_t timer = support_create_timer (0, 100000000, false, NULL); in do_test() local
62 support_delete_timer (timer); in do_test()
66 timer_t timer = support_create_timer (0, 100000000, false, NULL); in do_test() local
72 support_delete_timer (timer); in do_test()
Dtimer_getoverr.c29 struct timer_node *timer; in timer_getoverrun() local
34 if (! timer_valid (timer = timer_id2ptr (timerid))) in timer_getoverrun()
37 retval = timer->overrun_count; in timer_getoverrun()
DMakefile72 tests := tst-shm tst-timer tst-timer2 \
82 tests-internal := tst-timer-sigmask
/glibc-2.36/sysdeps/pthread/
Dposix-timer.h93 timer_valid (struct timer_node *timer) in timer_valid() argument
95 return timer && timer->inuse == TIMER_INUSE; in timer_valid()
99 extern void __timer_dealloc (struct timer_node *timer);
102 timer_addref (struct timer_node *timer) in timer_addref() argument
104 timer->refcount++; in timer_addref()
108 timer_delref (struct timer_node *timer) in timer_delref() argument
110 if (--timer->refcount == 0) in timer_delref()
111 __timer_dealloc (timer); in timer_delref()
/glibc-2.36/sysdeps/unix/bsd/
Dualarm.c29 struct itimerval timer, otimer; in ualarm() local
31 timer.it_value.tv_sec = 0; in ualarm()
32 timer.it_value.tv_usec = value; in ualarm()
33 timer.it_interval.tv_sec = 0; in ualarm()
34 timer.it_interval.tv_usec = interval; in ualarm()
36 if (__setitimer (ITIMER_REAL, &timer, &otimer) < 0) in ualarm()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtime.c57 __time64 (__time64_t *timer) in __time64() argument
62 if (timer != NULL) in __time64()
63 *timer = ts.tv_sec; in __time64()
71 __time (time_t *timer) in libc_hidden_def()
81 if (timer != NULL) in libc_hidden_def()
82 *timer = t; in libc_hidden_def()
Dkernel-posix-timers.h41 extern struct timer *__timer_active_sigev_thread attribute_hidden;
57 struct timer struct
66 struct timer *next; argument
83 timer_to_timerid (struct timer *ptr) in timer_to_timerid()
94 static inline struct timer *
97 return (struct timer *)((uintptr_t) timerid << 1); in timerid_to_timer()
Dtimer_routines.c28 struct timer *__timer_active_sigev_thread;
73 struct timer *tk = (struct timer *) si.si_ptr; in timer_helper_thread()
79 struct timer *runp = __timer_active_sigev_thread; in timer_helper_thread()
Dtimer_delete.c36 struct timer *kt = timerid_to_timer (timerid); in ___timer_delete()
44 struct timer *prevp = __timer_active_sigev_thread; in ___timer_delete()
Dtimer_create.c78 struct timer *newp = malloc (sizeof (struct timer)); in ___timer_create()
/glibc-2.36/sysdeps/posix/
Dprofil.c68 struct itimerval timer; in __profil() local
120 timer.it_value.tv_sec = 0; in __profil()
121 timer.it_value.tv_usec = 1000000 / __profile_frequency (); in __profil()
122 timer.it_interval = timer.it_value; in __profil()
123 return __setitimer (ITIMER_PROF, &timer, otimer_ptr); in __profil()
Dsprofil.c273 struct itimerval timer; in __sprofil() local
341 timer.it_value.tv_sec = 0; in __sprofil()
342 timer.it_value.tv_usec = 1; in __sprofil()
343 timer.it_interval = timer.it_value; in __sprofil()
344 return __setitimer (ITIMER_PROF, &timer, &prof_info.saved_timer); in __sprofil()
/glibc-2.36/time/
Dtzfile.c579 __tzfile_compute (__time64_t timer, int use_localtime, in __tzfile_compute() argument
590 if (__glibc_unlikely (num_transitions == 0 || timer < transitions[0])) in __tzfile_compute()
620 else if (__glibc_unlikely (timer >= transitions[num_transitions - 1])) in __tzfile_compute()
634 if (__glibc_unlikely (! __offtime (timer, 0, tp))) in __tzfile_compute()
638 __tz_compute (timer, tp, 1); in __tzfile_compute()
664 i = (transitions[num_transitions - 1] - timer) / 15778476; in __tzfile_compute()
668 if (timer < transitions[i]) in __tzfile_compute()
670 if (i < 10 || timer >= transitions[i - 10]) in __tzfile_compute()
673 while (timer < transitions[i - 1]) in __tzfile_compute()
681 if (i + 10 >= num_transitions || timer < transitions[i + 10]) in __tzfile_compute()
[all …]
Dtzset.c518 __tz_compute (__time64_t timer, struct tm *tm, int use_localtime) in __tz_compute() argument
532 isdst = (timer < tz_rules[1].change in __tz_compute()
533 || timer >= tz_rules[0].change); in __tz_compute()
535 isdst = (timer >= tz_rules[0].change in __tz_compute()
536 && timer < tz_rules[1].change); in __tz_compute()
567 __tz_convert (__time64_t timer, int use_localtime, struct tm *tp) in weak_alias()
580 __tzfile_compute (timer, use_localtime, &leap_correction, in weak_alias()
584 if (! __offtime (timer, 0, tp)) in weak_alias()
587 __tz_compute (timer, tp, use_localtime); in weak_alias()
603 if (__offtime (timer, tp->tm_gmtoff - leap_correction, tp)) in weak_alias()
Dtime.c23 time (time_t *timer) in time() argument
28 if (timer) in time()
29 *timer = ts.tv_sec; in time()
Dgetdate.c114 __time64_t timer; in __getdate_r() local
221 timer = time64_now (); in __getdate_r()
222 __localtime64_r (&timer, &tm); in __getdate_r()
/glibc-2.36/benchtests/
Dbench-arc4random.c39 static timer_t timer; variable
47 timer = support_create_timer (DURATION, 0, false, timer_callback); in timer_start()
52 support_delete_timer (timer); in timer_stop()
/glibc-2.36/support/
Dsupport_create_timer.c63 support_delete_timer (timer_t timer) in support_delete_timer() argument
65 int r = timer_delete (timer); in support_delete_timer()
/glibc-2.36/malloc/
Dmemusage.c316 struct itimerval timer; in me() local
318 timer.it_value.tv_sec = 0; in me()
319 timer.it_value.tv_usec = 1; in me()
320 timer.it_interval = timer.it_value; in me()
321 setitimer (ITIMER_PROF, &timer, NULL); in me()
/glibc-2.36/include/
Dtime.h59 extern void __tzfile_compute (__time64_t timer, int use_localtime,
66 extern void __tz_compute (__time64_t timer, struct tm *tm, int use_localtime)
280 extern struct tm *__tz_convert (__time64_t timer, int use_localtime,
338 extern __time64_t __time64 (__time64_t *timer); in libc_hidden_proto()
/glibc-2.36/manual/
Dtime.texi687 contain the values the timer implementation in the kernel assumes. They
762 periodic timer interrupt on which the system clock is based.
2768 timer; when the timer expires, the process receives a signal.
2771 @cindex interval timer, setting
2778 A real-time timer that counts elapsed time. This timer sends a
2780 @cindex real-time timer
2781 @cindex timer, real-time
2784 A virtual timer that counts processor time used by the process. This timer
2786 @cindex virtual timer
2787 @cindex timer, virtual
[all …]

1234