|
Boost : |
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2008-04-09 19:33:54
Peter Dimov wrote:
> 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?
I'll find out in a few hours... Going to dinner now :-)
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org (msn) - grafik/redshift-software.com -- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk