Date: Sun, 23 Mar 2003 17:12:07 -0800 From: Marcel Moolenaar <marcel@xcllnt.net> To: Craig Rodrigues <rodrigc@attbi.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: atomic_dec_and_test() in FreeBSD? Message-ID: <20030324011207.GA3985@itanium.pn.xcllnt.net> In-Reply-To: <20030323233717.GA76063@attbi.com> References: <20030323233717.GA76063@attbi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 23, 2003 at 06:37:17PM -0500, Craig Rodrigues wrote: > > APR makes use of a function in Linux called > atomic_dec_and_test which is described here: *snip* > Is there a way that I can use the existing <machine/atomic.h> > FreeBSD macros to achieve the equivalent of atomic_dec_and_test? Probably not a good idea. You're much better off implementing it on your own. Your requirements are likely to be different from those of the kernel. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030324011207.GA3985>