Date: Sun, 23 Mar 2003 18:37:17 -0500 From: Craig Rodrigues <rodrigc@attbi.com> To: freebsd-current@freebsd.org Subject: atomic_dec_and_test() in FreeBSD? Message-ID: <20030323233717.GA76063@attbi.com>
next in thread | raw e-mail | index | archive | help
Hi, I asked this question on freebsd-smp...I'm asking here in case anyone has any ideas. I am the port maintainer for the Apache Portable Runtime (APR) library. APR makes use of a function in Linux called atomic_dec_and_test which is described here: http://kernelnewbies.org/documents/kdoc/kernel-api/r287.html Is there a way that I can use the existing <machine/atomic.h> FreeBSD macros to achieve the equivalent of atomic_dec_and_test? I couldn't figure out a way to do it. Thanks. -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message ----- End forwarded message ----- -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com 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?20030323233717.GA76063>