cvs commit: src/sys/kern kern_timeout.c src/sys/sys callout.h
src/share/man/man9 timeout.9
Colin Percival
cperciva at FreeBSD.org
Tue Apr 6 16:09:46 PDT 2004
cperciva 2004/04/06 16:08:49 PDT
FreeBSD src repository
Modified files:
sys/kern kern_timeout.c
sys/sys callout.h
share/man/man9 timeout.9
Log:
Introduce a callout_drain() function. This acts in the same manner as
callout_stop(), except that if the callout being stopped is currently
in progress, it blocks attempts to reset the callout and waits until the
callout is completed before it returns.
This makes it possible to clean up callout-using code safely, e.g.,
without potentially freeing memory which is still being used by a callout.
Reviewed by: mux, gallatin, rwatson, jhb
Revision Changes Path
1.21 +18 -11 src/share/man/man9/timeout.9
1.86 +90 -1 src/sys/kern/kern_timeout.c
1.25 +3 -0 src/sys/sys/callout.h
More information about the cvs-src
mailing list