Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Sep 2000 11:12:51 -0700
From:      "Kevin Mills" <kmills@aventail.com>
To:        "FreeBSD Hackers" <freebsd-hackers@FreeBSD.org>
Subject:   atomic operations
Message-ID:  <CCELKJNGPCOKBIFAKKGEAEAHCMAA.kmills@aventail.com>

next in thread | raw e-mail | index | archive | help

I found the atomic_* functions in <machine/atomic.h>, 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CCELKJNGPCOKBIFAKKGEAEAHCMAA.kmills>