Skip to content

Commit

Permalink
Update threadpool for compatibility with Boost 1.50 (per Arfrever). C…
Browse files Browse the repository at this point in the history
…loses #3.
  • Loading branch information
ezod committed Aug 7, 2012
1 parent 1350d47 commit e856d1b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dependencies/threadpool/include/threadpool/task_adaptors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ namespace boost { namespace threadpool
if(m_break_s > 0 || m_break_ns > 0)
{ // Sleep some time before first execution
xtime xt;
#if BOOST_VERSION >= 105000
xtime_get(&xt, TIME_UTC_);
#else
xtime_get(&xt, TIME_UTC);
#endif
xt.nsec += m_break_ns;
xt.sec += m_break_s;
thread::sleep(xt);
Expand All @@ -146,7 +150,11 @@ namespace boost { namespace threadpool
if(m_break_s > 0 || m_break_ns > 0)
{
xtime xt;
#if BOOST_VERSION >= 105000
xtime_get(&xt, TIME_UTC_);
#else
xtime_get(&xt, TIME_UTC);
#endif
xt.nsec += m_break_ns;
xt.sec += m_break_s;
thread::sleep(xt);
Expand Down

0 comments on commit e856d1b

Please sign in to comment.