Searched refs:timer (Results 1 - 25 of 272) sorted by path

1234567891011

/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/src/
H A DTestDrop.java52 final Timer timer = new Timer();
53 timer.schedule(new TimerTask() {
56 timer.cancel();
/freebsd-11-stable/contrib/bsnmp/snmp_ntp/
H A Dsnmp_ntp.c148 int32_t timer; /* Timer */ member in struct:peer
962 "reftime,org,rec,xmt,reach,timer,offset,delay,dispersion,"
1067 } else if (strcmp(name, "timer") == 0 ||
1068 strcmp(name, "peer.timer") == 0) {
1069 val_parse_int32(val, &p->timer,
1324 value->v.uint32 = t->timer;
/freebsd-11-stable/contrib/bsnmp/snmpd/
H A Dmain.c1783 struct timer *tp = uap;
1802 struct timer *tp = uap;
1808 * Start a one-shot timer
1813 struct timer *tp;
1818 if ((tp = malloc(sizeof(struct timer))) == NULL) {
1819 syslog(LOG_CRIT, "out of memory for timer");
1836 syslog(LOG_ERR, "cannot set timer: %m");
1842 syslog(LOG_ERR, "cannot set timer: %m");
1850 * Start a repeatable timer. When used with USE_LIBBEGEMOT the first argument
1858 struct timer *t
[all...]
H A Dsnmpd.h90 struct timer { struct
93 evTimerID id; /* timer id */
94 struct lmodule *owner; /* owner of the timer */
95 LIST_ENTRY(timer) link;
99 extern LIST_HEAD(timer_list, timer) timer_list;
/freebsd-11-stable/contrib/gcc/
H A Dtimevar.c144 timer. */
222 timevar_accumulate (struct timevar_time_def *timer, argument
226 timer->user += stop_time->user - start_time->user;
227 timer->sys += stop_time->sys - start_time->sys;
228 timer->wall += stop_time->wall - start_time->wall;
229 timer->ggc_mem += stop_time->ggc_mem - start_time->ggc_mem;
261 TIMEVAR cannot be running as a standalone timer. */
273 /* Can't push a standalone timer. */
/freebsd-11-stable/contrib/libpcap/msdos/
H A Dmakefile.dj36 lock.o kmalloc.o quirks.o timer.o net_init.o)
/freebsd-11-stable/contrib/libreadline/
H A Dparens.c119 struct timeval timer; local
133 timer.tv_sec = 0;
134 timer.tv_usec = _paren_blink_usec;
139 ready = select (1, &readfds, (fd_set *)NULL, (fd_set *)NULL, &timer);
/freebsd-11-stable/contrib/libxo/xohtml/external/
H A Djquery.js8843 var timer,
8848 timer = timers[ i ];
8849 // Checks the timer has not already been removed
8850 if ( !timer() && timers[ i ] === timer ) {
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_sem.c222 struct itimerval timer; local
223 timer.it_interval.tv_sec = 0;
224 timer.it_interval.tv_usec = 0;
225 timer.it_value.tv_sec = 0;
226 timer.it_value.tv_usec = ms * 1000;
227 ATF_REQUIRE(setitimer(ITIMER_REAL, &timer, NULL) == 0);
/freebsd-11-stable/contrib/ngatm/libngatm/
H A Dsscopcust.h87 (S)->timer##T, T##_func); \
/freebsd-11-stable/contrib/ngatm/sscop/
H A Dcommon.c52 struct timer { struct
367 errx(1, "bad timer name '%s'", arg);
405 struct timer *t = uap;
412 * Start a timer
418 struct timer *t;
430 err(1, "cannot start timer");
436 err(1, "cannot start timer");
443 * Stop a timer
448 struct timer *t = tp;
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/
H A Dtimer.h18 /* $Id: timer.h,v 1.43 2009/09/02 23:48:03 tbox Exp $ */
27 /*! \file isc/timer.h
44 * Timers can change type. It is typical to create a timer as
45 * an 'inactive' timer and then change it into a 'ticker' or
46 * 'once' timer.
51 * Clients of this module must not be holding a timer's task's lock when
52 * making a call that affects that timer. Failure to follow this rule
106 /*% Timer and timer manager methods */
120 void (*attach)(isc_timer_t *timer, isc_timer_t **timerp);
122 isc_result_t (*reset)(isc_timer_t *timer, isc_timertype_
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dlib.c34 #include <isc/timer.h>
H A Dratelimiter.c28 #include <isc/timer.h>
43 isc_timer_t * timer; member in struct:isc_ratelimiter
74 rl->timer = NULL;
84 rl, &rl->timer);
115 * If the timer is currently running, change its rate.
118 result = isc_timer_reset(rl->timer, isc_timertype_ticker, NULL,
152 result = isc_timer_reset(rl->timer, isc_timertype_ticker, NULL,
191 * No work left to do. Stop the timer so that we don't
194 result = isc_timer_reset(rl->timer,
216 (void)isc_timer_reset(rl->timer, isc_timertype_inactiv
[all...]
H A Dtimer.c34 #include <isc/timer.h>
82 /*! Locked by timer lock. */
137 isc__timer_reset(isc_timer_t *timer, isc_timertype_t type,
141 isc__timer_gettype(isc_timer_t *timer);
143 isc__timer_touch(isc_timer_t *timer);
201 schedule(isc__timer_t *timer, isc_time_t *now, isc_boolean_t signal_ok) { argument
214 REQUIRE(timer->type != isc_timertype_inactive);
220 manager = timer->manager;
234 if (timer->type != isc_timertype_once) {
235 result = isc_time_add(now, &timer
335 deschedule(isc__timer_t *timer) argument
367 destroy(isc__timer_t *timer) argument
400 isc__timer_t *timer; local
520 isc__timer_t *timer = (isc__timer_t *)timer0; local
593 isc__timer_t *timer = (isc__timer_t *)timer0; local
607 isc__timer_t *timer = (isc__timer_t *)timer0; local
638 isc__timer_t *timer = (isc__timer_t *)timer0; local
656 isc__timer_t *timer; local
685 isc__timer_t *timer; local
862 isc__timer_t *timer; local
[all...]
H A Dtimer_api.c27 #include <isc/timer.h>
111 isc_timer_attach(isc_timer_t *timer, isc_timer_t **timerp) { argument
112 REQUIRE(ISCAPI_TIMER_VALID(timer));
115 timer->methods->attach(timer, timerp);
117 ENSURE(*timerp == timer);
130 isc_timer_reset(isc_timer_t *timer, isc_timertype_t type, argument
134 REQUIRE(ISCAPI_TIMER_VALID(timer));
136 return (timer->methods->reset(timer, typ
140 isc_timer_touch(isc_timer_t *timer) argument
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/tests/
H A Disctest.c34 #include <isc/timer.h>
H A Disctest.h32 #include <isc/timer.h>
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Dlibisc.mak191 -@erase "$(INTDIR)\timer.obj"
287 "$(INTDIR)\timer.obj" \
458 -@erase "$(INTDIR)\timer.obj"
459 -@erase "$(INTDIR)\timer.sbr"
556 "$(INTDIR)\timer.sbr" \
644 "$(INTDIR)\timer.obj" \
2017 SOURCE=..\timer.c
2022 "$(INTDIR)\timer.obj" : $(SOURCE) "$(INTDIR)"
2029 "$(INTDIR)\timer.obj" "$(INTDIR)\timer
[all...]
/freebsd-11-stable/contrib/ntp/ntpd/
H A Dntpsim.c156 /* Push a beep and a timer on the event queue */
222 /* Define a function for processing a timer interrupt.
223 * On every timer interrupt, call the NTP timer to send packets and process
230 /* Call the NTP timer.
235 timer();
244 /* Arm the next timer interrupt. */
H A Drefclock_acts.c210 int timer; /* timeout counter */ member in struct:actsunit
241 acts_timer /* housekeeping timer */
417 up->timer = ANSWER;
432 up->timer = TIMECODE;
540 up->timer = TIMECODE;
555 up->timer = SETUP;
626 up->timer = REDIAL;
631 up->timer = 0;
705 * called. If flag1 is set while timer is zero, force a call.
709 if (up->timer
[all...]
/freebsd-11-stable/contrib/ntp/scripts/deprecated/
H A Dfreq_adj.in16 chop($timer = `sysctl -n kern.timecounter.hardware 2> /dev/null`);
18 $timer =~ tr/\U/\L/;
20 if ($timer eq '') {
25 $timer = $1;
32 $opt_t = $timer if !defined($opt_t);
34 if ($timer ne '') { # $timer found...
36 if ($timer ne $opt_t) { # - - and they differ
37 warn "You specified a $opt_t timer but I detected a $timer time
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Devutil_time.c185 evutil_monotonic_timer_free(struct evutil_monotonic_timer *timer) argument
187 if (timer) {
188 mm_free(timer);
196 evutil_configure_monotonic_time(struct evutil_monotonic_timer *timer, argument
199 return evutil_configure_monotonic_time_(timer, flags);
206 evutil_gettime_monotonic(struct evutil_monotonic_timer *timer, argument
209 return evutil_gettime_monotonic_(timer, tp);
377 Parts of our logic in the win32 timer code here are closely based on
476 * our high-resolution timer, but use GetTickCount*() to keep
516 ratchet it forward so that it acts like a monotonic timer, whethe
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/include/event2/
H A Dutil.h296 * Structure to hold information about a monotonic timer
318 * functions. You must configure the timer with
328 void evutil_monotonic_timer_free(struct evutil_monotonic_timer *timer);
334 int evutil_configure_monotonic_time(struct evutil_monotonic_timer *timer,
344 * It is not safe to use this funtion on the same timer from multiple
348 int evutil_gettime_monotonic(struct evutil_monotonic_timer *timer,
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
H A Dregress_util.c1285 struct evutil_monotonic_timer timer; local
1317 tt_int_op(evutil_configure_monotonic_time_(&timer, flags), ==, 0);
1320 evutil_gettime_monotonic_(&timer, &tv[i]);
1342 struct evutil_monotonic_timer timer; local
1354 tt_int_op(evutil_configure_monotonic_time_(&timer, flags), ==, 0);
1358 evutil_gettime_monotonic_(&timer, &tv[0]);
1361 evutil_gettime_monotonic_(&timer, &tv[i]);

Completed in 642 milliseconds

1234567891011