|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-04-09 19:27:36
Rene Rivera:
> Peter Dimov wrote:
>> What happens when you change...
>>
>>> bool try_lock()
>>> {
>>> int r;
>>>
>>> __asm__ __volatile__(
>>> "swp %0, %1, [%2]":
>>> "=r"( r ): // outputs
>>
>> ... this line to
>>
>> "=&r"( r ): // outputs
>
> Bingo!
Thanks, fixed in SVN. Apparently, the swp instruction doesn't like being
given the same register twice. Does spinlock_try_test.cpp pass as well?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk