Ticket #35949: patch-boost-1.50.diff
File patch-boost-1.50.diff, 4.2 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago) |
---|
-
source/backend/scene/view.cpp
old new 1550 1550 } 1551 1551 1552 1552 boost::xtime t; 1553 boost::xtime_get (&t, boost::TIME_UTC );1553 boost::xtime_get (&t, boost::TIME_UTC_); 1554 1554 t.sec += 3; 1555 1555 1556 1556 // this will cause us to wait until the other threads are done. -
source/base/timer.cpp
old new 117 117 POV_LONG TimerDefault::ElapsedRealTime() const 118 118 { 119 119 boost::xtime t; 120 boost::xtime_get(&t, boost::TIME_UTC );120 boost::xtime_get(&t, boost::TIME_UTC_); 121 121 POV_LONG tt = (POV_LONG)(t.sec) * (POV_LONG)(1000000000) + (POV_LONG)(t.nsec); 122 122 POV_LONG st = (POV_LONG)(realTimeStart.sec) * (POV_LONG)(1000000000) + (POV_LONG)(realTimeStart.nsec); 123 123 return ((tt - st) / (POV_LONG)(1000000)); … … 126 126 POV_LONG TimerDefault::ElapsedCPUTime() const 127 127 { 128 128 boost::xtime t; 129 boost::xtime_get(&t, boost::TIME_UTC );129 boost::xtime_get(&t, boost::TIME_UTC_); 130 130 POV_LONG tt = (POV_LONG)(t.sec) * (POV_LONG)(1000000000) + (POV_LONG)(t.nsec); 131 131 POV_LONG st = (POV_LONG)(cpuTimeStart.sec) * (POV_LONG)(1000000000) + (POV_LONG)(cpuTimeStart.nsec); 132 132 return ((tt - st) / (POV_LONG)(1000000)); … … 139 139 140 140 void TimerDefault::Reset() 141 141 { 142 boost::xtime_get(&realTimeStart, boost::TIME_UTC );143 boost::xtime_get(&cpuTimeStart, boost::TIME_UTC );142 boost::xtime_get(&realTimeStart, boost::TIME_UTC_); 143 boost::xtime_get(&cpuTimeStart, boost::TIME_UTC_); 144 144 } 145 145 146 146 } … … 155 155 void Delay(unsigned int msec) 156 156 { 157 157 boost::xtime t; 158 boost::xtime_get(&t, boost::TIME_UTC );158 boost::xtime_get(&t, boost::TIME_UTC_); 159 159 POV_ULONG ns = (POV_ULONG)(t.sec) * (POV_ULONG)(1000000000) + (POV_ULONG)(t.nsec) + (POV_ULONG)(msec) * (POV_ULONG)(1000000); 160 160 t.sec = (boost::xtime::xtime_sec_t)(ns / (POV_ULONG)(1000000000)); 161 161 t.nsec = (boost::xtime::xtime_nsec_t)(ns % (POV_ULONG)(1000000000)); -
vfe/unix/platformbase.cpp
old new 126 126 #else 127 127 // taken from source/base/timer.cpp 128 128 boost::xtime t; 129 boost::xtime_get(&t, boost::TIME_UTC );129 boost::xtime_get(&t, boost::TIME_UTC_); 130 130 POV_ULONG ns = (POV_ULONG)(t.sec) * (POV_ULONG)(1000000000) + (POV_ULONG)(t.nsec) + (POV_ULONG)(msec) * (POV_ULONG)(1000000); 131 131 t.sec = (boost::xtime::xtime_sec_t)(ns / (POV_ULONG)(1000000000)); 132 132 t.nsec = (boost::xtime::xtime_nsec_t)(ns % (POV_ULONG)(1000000000)); -
vfe/vfepovms.cpp
old new 247 247 248 248 // TODO: have a shorter wait but loop, and check for system shutdown 249 249 boost::xtime t; 250 boost::xtime_get (&t, boost::TIME_UTC );250 boost::xtime_get (&t, boost::TIME_UTC_); 251 251 t.nsec += 50000000 ; 252 252 m_Event.timed_wait (lock, t); 253 253 -
vfe/vfesession.cpp
old new 967 967 if (WaitTime > 0) 968 968 { 969 969 boost::xtime t; 970 boost::xtime_get (&t, boost::TIME_UTC );970 boost::xtime_get (&t, boost::TIME_UTC_); 971 971 t.sec += WaitTime / 1000 ; 972 972 t.nsec += (WaitTime % 1000) * 1000000 ; 973 973 m_SessionEvent.timed_wait (lock, t); … … 1034 1034 // we can't call pause directly since it will result in a thread context 1035 1035 // error. pause must be called from the context of the worker thread. 1036 1036 boost::xtime t; 1037 boost::xtime_get (&t, boost::TIME_UTC );1037 boost::xtime_get (&t, boost::TIME_UTC_); 1038 1038 t.sec += 3 ; 1039 1039 m_RequestFlag = rqPauseRequest; 1040 1040 if (m_RequestEvent.timed_wait(lock, t) == false) … … 1057 1057 // we can't call resume directly since it will result in a thread context 1058 1058 // error. it must be called from the context of the worker thread. 1059 1059 boost::xtime t; 1060 boost::xtime_get (&t, boost::TIME_UTC );1060 boost::xtime_get (&t, boost::TIME_UTC_); 1061 1061 t.sec += 3 ; 1062 1062 m_RequestFlag = rqResumeRequest; 1063 1063 if (m_RequestEvent.timed_wait(lock, t) == false) … … 1123 1123 m_LastError = vfeNoError; 1124 1124 1125 1125 boost::xtime t; 1126 boost::xtime_get (&t, boost::TIME_UTC );1126 boost::xtime_get (&t, boost::TIME_UTC_); 1127 1127 t.sec += 3 ; 1128 1128 #ifdef _DEBUG 1129 1129 t.sec += 120;