-
Notifications
You must be signed in to change notification settings - Fork 914
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix timer_manager to really use a steady clock when needed
This is a bit of a hack, since up to boost version 1.61 the time of the steady clock is always converted to system clock, which is then used for the wait... which obviously doesn't help if we explicitly want the steady clock. So as a workaround, include the backported versions of the boost condition variable if boost version is not recent enough.
- Loading branch information
Showing
6 changed files
with
860 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef BOOST_THREAD_CONDITION_VARIABLE_HPP | ||
#define BOOST_THREAD_CONDITION_VARIABLE_HPP | ||
|
||
// condition_variable.hpp | ||
// | ||
// (C) Copyright 2007 Anthony Williams | ||
// | ||
// 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/platform.hpp> | ||
#if defined(BOOST_THREAD_PLATFORM_WIN32) | ||
#include <boost/thread/win32/condition_variable.hpp> | ||
#elif defined(BOOST_THREAD_PLATFORM_PTHREAD) | ||
//#include <boost/thread/pthread/condition_variable.hpp> | ||
#include "boost_161_pthread_condition_variable.h" | ||
#else | ||
#error "Boost threads unavailable on this platform" | ||
#endif | ||
|
||
#endif | ||
|
Oops, something went wrong.