Updated Boost headers
This commit is contained in:
@@ -265,7 +265,7 @@ inline void atomic_write32(volatile boost::uint32_t *mem, boost::uint32_t val)
|
||||
} //namespace interprocess{
|
||||
} //namespace boost{
|
||||
|
||||
#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
|
||||
#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined(ANDROID)
|
||||
|
||||
namespace boost {
|
||||
namespace interprocess {
|
||||
|
||||
@@ -18,6 +18,7 @@ namespace interprocess {
|
||||
|
||||
inline interprocess_condition::interprocess_condition()
|
||||
{
|
||||
#if !defined(ANDROID)
|
||||
int res;
|
||||
pthread_condattr_t cond_attr;
|
||||
res = pthread_condattr_init(&cond_attr);
|
||||
@@ -34,6 +35,12 @@ inline interprocess_condition::interprocess_condition()
|
||||
if(res != 0){
|
||||
throw interprocess_exception(res);
|
||||
}
|
||||
#else
|
||||
int res = pthread_cond_init(&m_condition, NULL);
|
||||
if(res != 0){
|
||||
throw interprocess_exception(res);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
inline interprocess_condition::~interprocess_condition()
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace detail{
|
||||
pthread_mutexattr_t m_attr;
|
||||
};
|
||||
|
||||
#if !defined(ANDROID)
|
||||
//!Makes pthread_condattr_t cleanup easy when using exceptions
|
||||
struct condattr_wrapper
|
||||
{
|
||||
@@ -69,6 +70,7 @@ namespace detail{
|
||||
|
||||
pthread_condattr_t m_attr;
|
||||
};
|
||||
#endif
|
||||
|
||||
//!Makes initialized pthread_mutex_t cleanup easy when using exceptions
|
||||
class mutex_initializer
|
||||
|
||||
Reference in New Issue
Block a user