cvs commit: src/sys/sys timers.h src/sys/kern kern_sig.c kern_time.c
David Xu
davidxu at FreeBSD.org
Sat Oct 29 19:56:09 PDT 2005
davidxu 2005-10-30 02:56:08 UTC
FreeBSD src repository
Modified files:
sys/sys timers.h
sys/kern kern_sig.c kern_time.c
Log:
Let itimer store itimerspec instead of itimerval, so I don't have to
convert to or from timeval frequently.
Introduce function itimer_accept() to ack a timer signal in signal
acceptance code, this allows us to return more fresh overrun counter
than at signal generating time. while POSIX says:
"the value returned by timer_getoverrun() shall apply to the most
recent expiration signal delivery or acceptance for the timer,.."
I prefer returning it at acceptance time.
Introduce SIGEV_THREAD_ID notification mode, it is used by thread
libary to request kernel to deliver signal to a specified thread,
and in turn, the thread library may use the mechanism to implement
SIGEV_THREAD which is required by POSIX.
Timer signal is managed by timer code, so it can not fail even if
signal queue is full filled by sigqueue syscall.
Revision Changes Path
1.309 +5 -1 src/sys/kern/kern_sig.c
1.121 +118 -59 src/sys/kern/kern_time.c
1.9 +2 -2 src/sys/sys/timers.h
More information about the cvs-src
mailing list