summaryrefslogtreecommitdiffstats
path: root/sys/sys/callout.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-08-10 21:06:59 +0000
committerjhb <jhb@FreeBSD.org>2001-08-10 21:06:59 +0000
commit22915435df9de745286e8fe0078066cb617c9350 (patch)
treed4d3fb3bb15d8f8c5cb3d8aa87fc69c86af2c524 /sys/sys/callout.h
parent18c8b84e2f8c35c323f0ee30773be2a2b4df140f (diff)
downloadFreeBSD-src-22915435df9de745286e8fe0078066cb617c9350.zip
FreeBSD-src-22915435df9de745286e8fe0078066cb617c9350.tar.gz
Change callout_stop() to return an integer. If callout_stop() succeeds in
removing the callout entry, return 1. If callout_stop() fails to remove the callout entry because it is currently executing or has already been executed, then the function returns 0. The idea was obtained from BSD/OS, however, BSD/OS changed untimeout(), and I've just changed callout_stop() to be more conservative. Obtained from: BSD/OS
Diffstat (limited to 'sys/sys/callout.h')
-rw-r--r--sys/sys/callout.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/callout.h b/sys/sys/callout.h
index 9eecb44..692cd78 100644
--- a/sys/sys/callout.h
+++ b/sys/sys/callout.h
@@ -80,7 +80,7 @@ extern struct mtx callout_lock;
void callout_init __P((struct callout *, int));
#define callout_pending(c) ((c)->c_flags & CALLOUT_PENDING)
void callout_reset __P((struct callout *, int, void (*)(void *), void *));
-void callout_stop __P((struct callout *));
+int callout_stop __P((struct callout *));
#endif
OpenPOWER on IntegriCloud