blob: a66ded258987f80d6896cc70cf9c4c80e9594198 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
https://github.com/vpython/visual/issues/3
--- dependencies/threadpool/include/threadpool/task_adaptors.hpp
+++ dependencies/threadpool/include/threadpool/task_adaptors.hpp
@@ -135,7 +135,11 @@
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);
@@ -146,7 +150,11 @@
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);
|