On Wed, May 16, 2007 at 03:01:52PM -0700, Bart Smaalders wrote:
> <assuming your code is correct as written>
>
> inline int atomic_conditional_increment(int * pw )
> {
> if (*pw)
> return (atomic_inc_32(pw));
Well, atomic_inc_32_nv, yes. But it seemed that perhaps the test for
0 needed to be done atomically as well.
--
Keith M Wesolowski "Sir, we're surrounded!"
FishWorks "Excellent; we can attack in any direction!"
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code