diff -Nru a/boost/thread/pthread/timespec.hpp b/boost/thread/pthread/timespec.hpp
|
a
|
b
|
|
| 15 | 15 | { |
| 16 | 16 | inline struct timespec get_timespec(boost::system_time const& abs_time) |
| 17 | 17 | { |
| 18 | | struct timespec timeout={0}; |
| | 18 | struct timespec timeout={0,0}; |
| 19 | 19 | boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0); |
| 20 | 20 | |
| 21 | 21 | timeout.tv_sec=time_since_epoch.total_seconds(); |
diff -Nru a/boost/thread/xtime.hpp b/boost/thread/xtime.hpp
|
a
|
b
|
|
| 56 | 56 | |
| 57 | 57 | inline xtime get_xtime(boost::system_time const& abs_time) |
| 58 | 58 | { |
| 59 | | xtime res={0}; |
| | 59 | xtime res={0,0}; |
| 60 | 60 | boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0); |
| 61 | 61 | |
| 62 | 62 | res.sec=static_cast<xtime::xtime_sec_t>(time_since_epoch.total_seconds()); |