Date: Tue, 6 Apr 2004 16:08:49 -0700 (PDT) From: Colin Percival <cperciva@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_timeout.c src/sys/sys callout.h src/share/man/man9 timeout.9 Message-ID: <200404062308.i36N8nMU097228@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404062308.i36N8nMU097228>