From owner-freebsd-current Sun Mar 23 15:37:14 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB9D837B401 for ; Sun, 23 Mar 2003 15:37:13 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id C196B43FA3 for ; Sun, 23 Mar 2003 15:37:12 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.8/8.12.7) with ESMTP id h2NNbIri076160 for ; Sun, 23 Mar 2003 18:37:18 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.8/8.12.7/Submit) id h2NNbIN2076159 for freebsd-current@freebsd.org; Sun, 23 Mar 2003 18:37:18 -0500 (EST) Date: Sun, 23 Mar 2003 18:37:17 -0500 From: Craig Rodrigues To: freebsd-current@freebsd.org Subject: atomic_dec_and_test() in FreeBSD? Message-ID: <20030323233717.GA76063@attbi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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