site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com