Re: cmpxchgl on x86?
Re: cmpxchgl on x86?
- Subject: Re: cmpxchgl on x86?
- From: Andrew Gallatin <email@hidden>
- Date: Thu, 23 Jun 2005 14:08:37 -0400 (EDT)
Matt Watson writes:
> > Can somebody tell me what I'm doing wrong, please?
>
> Try putting a / after the lock.
Thanks.. lock; cmpxchgl seemed to do the trick.
>
> Also, there are compare-and-swap routines already in libSystem:
>
Yes, but this code already compiles on Linux, FreeBSD, and
Solaris/x86, and that's just the x86 OSes. The last thing I want is
to add another ifdef.
Thanks for the asm tip!
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden