|
Boost : |
Subject: Re: [boost] ARM thumb support in spinlock_gcc_arm.hpp
From: Phil Nash (phil.nash.lists_at_[hidden])
Date: 2008-09-25 08:21:32
On Sat, Sep 6, 2008 at 3:45 AM, Jerry Napoli <jnapoli_at_[hidden]> wrote:
>>
>> I assume you mean spinlock_nt.hpp?
>>
>
> No, spinlock_pt.hpp. The darwin os on iPhone supports pthreads so this
> works.
>
>> Unless someone comes up with a better solution, we probably need to
>> replace
>>
>> #if defined(__GNUC__) && defined( __arm__ )
>> # include <boost/detail/spinlock_gcc_arm.hpp>
>> #elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
>> # include <boost/detail/spinlock_sync.hpp>
>>
>> with
>>
>> #if defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ )
>> # include <boost/detail/spinlock_gcc_arm.hpp>
>> #elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) &&
>> !defined( __arm__ )
>> # include <boost/detail/spinlock_sync.hpp>
>>
>> Does this change help?
>
> Yes, this is perfect. Thanks!
>
I hit the same problem today, and googled my way to this thread.
Suggestion works perfectly - thanks.
Does anyone know if this modification, or something similar, is going
to be/ has been committed to the main line (I just have my own locally
patched copy for now)?
Thanks and regards,
[)o
IhIL..
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk