From owner-freebsd-hackers Mon Sep 25 11: 9:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sighup.aventail.com (sighup.aventail.com [64.94.142.130]) by hub.freebsd.org (Postfix) with ESMTP id B779437B422 for ; Mon, 25 Sep 2000 11:09:46 -0700 (PDT) Received: from leo.in.aventail.com (leo.in.aventail.com [192.168.1.136]) by sighup.aventail.com (8.11.0/8.11.0) with ESMTP id e8PI9kj08892 for ; Mon, 25 Sep 2000 11:09:46 -0700 (PDT) Received: from voyager (exit.dmz.aventail.com [192.168.25.132]) by leo.in.aventail.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id S55PFW52; Mon, 25 Sep 2000 11:08:13 -0700 From: "Kevin Mills" To: "FreeBSD Hackers" Subject: atomic operations Date: Mon, 25 Sep 2000 11:12:51 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I found the atomic_* functions in , but noticed that they have no return value. What I need is a function that increments/decrements the given value *and* returns the new value in an atomic operation. I suppose this is possible, yes? How would one modify the assembly to make this work? Thanks! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message