From owner-cvs-all Fri Aug 10 14: 7: 3 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D3F2837B405; Fri, 10 Aug 2001 14:06:59 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7AL6x301984; Fri, 10 Aug 2001 14:06:59 -0700 (PDT) (envelope-from jhb) Message-Id: <200108102106.f7AL6x301984@freefall.freebsd.org> From: John Baldwin Date: Fri, 10 Aug 2001 14:06:59 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_timeout.c src/sys/sys callout.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2001/08/10 14:06:59 PDT Modified files: sys/kern kern_timeout.c sys/sys callout.h Log: 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 Revision Changes Path 1.69 +4 -3 src/sys/kern/kern_timeout.c 1.21 +2 -2 src/sys/sys/callout.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message