Ticket #1556: boost.thread.diff
File boost.thread.diff, 1.9 KB (added by , 15 years ago) |
---|
-
thread/pthread/timespec.hpp
15 15 { 16 16 inline struct timespec get_timespec(boost::system_time const& abs_time) 17 17 { 18 struct timespec timeout={0}; 18 // warning: missing initializer for member 'timespec::tv_nsec' 19 struct timespec timeout={0, 0}; 19 20 boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0); 20 21 21 22 timeout.tv_sec=time_since_epoch.total_seconds(); -
thread/pthread/shared_mutex.hpp
44 44 public: 45 45 shared_mutex() 46 46 { 47 state_data state_={0}; 47 // warning: missing initializer for member 'boost::shared_mutex::state_data::exclusive' 48 // warning: missing initializer for member 'boost::shared_mutex::state_data::upgrade' 49 // warning: missing initializer for member 'boost::shared_mutex::state_data::exclusive_waiting_blocked' 50 state_data state_={0, false, false, false}; 48 51 state=state_; 49 52 } 50 53 -
thread/xtime.hpp
56 56 57 57 inline xtime get_xtime(boost::system_time const& abs_time) 58 58 { 59 xtime res={0}; 59 // warning: missing initializer for member 'boost::xtime::nsec' 60 xtime res={0, 0}; 60 61 boost::posix_time::time_duration const time_since_epoch=abs_time-boost::posix_time::from_time_t(0); 61 62 62 63 res.sec=static_cast<xtime::xtime_sec_t>(time_since_epoch.total_seconds());