Sha256: dde9ff25612276b970f99a9e4cf4c7d3dc3a7c4bc9745a5454c66e67a97b1ec4

Contents?: true

Size: 1.03 KB

Versions: 12

Compression:

Stored size: 1.03 KB

Contents

#ifndef BOOST_THREAD_PTHREAD_PTHREAD_HELPERS_HPP
#define BOOST_THREAD_PTHREAD_PTHREAD_HELPERS_HPP
// Copyright (C) 2017
// Vicente J. Botet Escriba
//
//  Distributed under the Boost Software License, Version 1.0. (See
//  accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)

#include <boost/thread/detail/config.hpp>
#include <pthread.h>

#include <boost/config/abi_prefix.hpp>

namespace boost
{
    namespace pthread
    {
      inline int cond_init(pthread_cond_t& cond) {

  #ifdef BOOST_THREAD_INTERNAL_CLOCK_IS_MONO
              pthread_condattr_t attr;
              int res = pthread_condattr_init(&attr);
              if (res)
              {
                return res;
              }
              pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
              res=pthread_cond_init(&cond,&attr);
              pthread_condattr_destroy(&attr);
              return res;
  #else
              return pthread_cond_init(&cond,NULL);
  #endif

      }
    }
}

#include <boost/config/abi_suffix.hpp>

#endif

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/thread/pthread/pthread_helpers.hpp