id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4533,timespec translation fails for times before 1970,Philipp Huber ,viboes,"I had a target system that had always a failed assertion with a call to condition_variable::timed_wait(); I found out, that pthread_cond_timedwait does not accept a timespec argument that has negative tv_nsec. Therefore I suggest the following patch, which works for me. =================================================================== --- /boost/boost_1_43_0/boost/thread/pthread/timespec.hpp (revision 1769) +++ /boost/boost_1_43_0/boost/thread/pthread/timespec.hpp (working copy) @@ -26,6 +26,13 @@ timeout.tv_sec=time_since_epoch.total_seconds(); timeout.tv_nsec=(long)(time_since_epoch.fractional_seconds()*(1000000000l/time_since_epoch.ticks_per_second())); + + if(timeout.tv_nsec < 0L) + { + timeout.tv_sec -= 1L; + timeout.tv_nsec += 1000000000L; + } + return timeout; } } ",Support Requests,closed,To Be Determined,thread,Boost 1.43.0,Problem,worksforme,absolute time,viboes