diff options
author | glebius <glebius@FreeBSD.org> | 2005-09-08 14:20:39 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2005-09-08 14:20:39 +0000 |
commit | 8f3eb2a42516bd9997f65e3756ab112b9c4d1f77 (patch) | |
tree | 28d972cf1fcd2514ba5a8b5fca4778e5e77c5548 /sys/sys/callout.h | |
parent | 28cd9f962898edb79beaf6cde6cdd90a29cbc061 (diff) | |
download | FreeBSD-src-8f3eb2a42516bd9997f65e3756ab112b9c4d1f77.zip FreeBSD-src-8f3eb2a42516bd9997f65e3756ab112b9c4d1f77.tar.gz |
Make callout_reset() return a non-zero value if a pending callout
was rescheduled. If there was no pending callout, then return 0.
Reviewed by: iedowse, cperciva
Diffstat (limited to 'sys/sys/callout.h')
-rw-r--r-- | sys/sys/callout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/callout.h b/sys/sys/callout.h index cec9079..a554562 100644 --- a/sys/sys/callout.h +++ b/sys/sys/callout.h @@ -81,7 +81,7 @@ extern struct mtx callout_lock; void callout_init(struct callout *, int); void callout_init_mtx(struct callout *, struct mtx *, int); #define callout_pending(c) ((c)->c_flags & CALLOUT_PENDING) -void callout_reset(struct callout *, int, void (*)(void *), void *); +int callout_reset(struct callout *, int, void (*)(void *), void *); #define callout_stop(c) _callout_stop_safe(c, 0) int _callout_stop_safe(struct callout *, int); |