Changeset 44369


Ignore:
Timestamp:
Apr 13, 2008, 3:35:40 PM (10 years ago)
Author:
Peter Dimov
Message:

Honor BOOST_DISABLE_THREADS; route GCC/ARM to the spinlock implementation; fall back to the spinlock implementation instead of using pthread_mutex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/boost/detail/sp_counted_base.hpp

    r44137 r44369  
    2121
    2222#if defined( BOOST_SP_DISABLE_THREADS )
    23 
    2423# include <boost/detail/sp_counted_base_nt.hpp>
    2524
    2625#elif defined( BOOST_SP_USE_SPINLOCK )
    27 
    2826# include <boost/detail/sp_counted_base_spin.hpp>
    2927
    3028#elif defined( BOOST_SP_USE_PTHREADS )
    31 
    3229# include <boost/detail/sp_counted_base_pt.hpp>
    3330
     31#elif defined( BOOST_DISABLE_THREADS ) && !defined( BOOST_SP_ENABLE_THREADS ) && !defined( BOOST_DISABLE_WIN32 )
     32# include <boost/detail/sp_counted_base_nt.hpp>
     33
    3434#elif defined( __GNUC__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
    35 
    3635# include <boost/detail/sp_counted_base_gcc_x86.hpp>
    3736
    38 //~ #elif defined( __MWERKS__ ) && ( defined( __i386__ ) || defined( __x86_64__ ) )
    39 
    40 //~ # include <boost/detail/sp_counted_base_cw_x86.hpp>
    41 
    4237#elif defined( __GNUC__ ) && defined( __ia64__ ) && !defined( __INTEL_COMPILER )
    43 
    4438# include <boost/detail/sp_counted_base_gcc_ia64.hpp>
    4539
    4640#elif defined(__HP_aCC) && defined(__ia64)
    47 
    4841# include <boost/detail/sp_counted_base_acc_ia64.hpp>
    4942
    5043#elif defined( __MWERKS__ ) && defined( __POWERPC__ )
    51 
    5244# include <boost/detail/sp_counted_base_cw_ppc.hpp>
    5345
    5446#elif defined( __GNUC__ ) && ( defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc ) )
    55 
    5647# include <boost/detail/sp_counted_base_gcc_ppc.hpp>
    5748
     49#elif defined(__GNUC__) && defined( __arm__ )
     50# include <boost/detail/sp_counted_base_spin.hpp>
     51
    5852#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
    59 
    6053# include <boost/detail/sp_counted_base_sync.hpp>
    6154
    6255#elif defined(__GNUC__) && ( defined( __sparcv8 ) || defined( __sparcv9 ) )
    63 
    6456# include <boost/detail/sp_counted_base_gcc_sparc.hpp>
    6557
    6658#elif defined( WIN32 ) || defined( _WIN32 ) || defined( __WIN32__ )
    67 
    6859# include <boost/detail/sp_counted_base_w32.hpp>
    6960
    7061#elif !defined( BOOST_HAS_THREADS )
    71 
    7262# include <boost/detail/sp_counted_base_nt.hpp>
    7363
    74 #elif defined( BOOST_HAS_PTHREADS )
    75 
    76 # include <boost/detail/sp_counted_base_pt.hpp>
    77 
    7864#else
    79 
    80 // Use #define BOOST_DISABLE_THREADS to avoid the error
    81 # error Unrecognized threading platform
     65# include <boost/detail/sp_counted_base_spin.hpp>
    8266
    8367#endif
Note: See TracChangeset for help on using the changeset viewer.