File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 409
409
# endif
410
410
#endif
411
411
412
- #if defined(BOOST_THREAD_PLATFORM_WIN32 )
412
+ #if defined(BOOST_THREAD_CHRONO_WINDOWS_API )
413
413
#define BOOST_THREAD_HAS_MONO_CLOCK
414
414
#define BOOST_THREAD_INTERNAL_CLOCK_IS_MONO
415
- #elif defined(BOOST_THREAD_MACOS )
415
+ #elif defined(BOOST_THREAD_CHRONO_MAC_API )
416
416
#define BOOST_THREAD_HAS_MONO_CLOCK
417
417
#else
418
418
#include < time.h> // check for CLOCK_MONOTONIC
419
419
#if defined(CLOCK_MONOTONIC)
420
420
#define BOOST_THREAD_HAS_MONO_CLOCK
421
- #if defined(BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC)
422
- #define BOOST_THREAD_INTERNAL_CLOCK_IS_MONO
423
- #endif
424
- #else
425
- #undef BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC
421
+ #define BOOST_THREAD_INTERNAL_CLOCK_IS_MONO
426
422
#endif
427
423
#endif
428
424
429
425
#if defined(BOOST_THREAD_PLATFORM_WIN32)
430
- #elif ! defined BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC
426
+ #elif ! defined BOOST_THREAD_INTERNAL_CLOCK_IS_MONO
431
427
#if defined BOOST_PTHREAD_HAS_TIMEDLOCK
432
428
#define BOOST_THREAD_USES_PTHREAD_TIMEDLOCK
433
429
#elif (defined(_POSIX_TIMEOUTS) && (_POSIX_TIMEOUTS-0)>=200112L) \
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ namespace boost
18
18
{
19
19
inline int cond_init (pthread_cond_t & cond) {
20
20
21
- #ifdef BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC
21
+ #ifdef BOOST_THREAD_INTERNAL_CLOCK_IS_MONO
22
22
pthread_condattr_t attr;
23
23
int res = pthread_condattr_init (&attr);
24
24
if (res)
Original file line number Diff line number Diff line change 4
4
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
5
6
6
#define BOOST_THREAD_VERSION 4
7
- // #define BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC
8
7
9
8
// #include <boost/thread/thread.hpp>
10
9
#include < boost/thread/condition_variable.hpp>
You can’t perform that action at this time.
0 commit comments