$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost::interprocess::message_queue::timed_receive, bug or mistake?
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-01-24 04:17:18
Ion Gaztañaga wrote:
> Use universal time instead of local time. Maybe this is not documented,
> and maybe this might be severe limitation. I've seen that boost::thread
> uses boost::system_time so maybe Interprocess should go this way.
Boost thread's system time is universal time:
namespace boost
{
typedef boost::posix_time::ptime system_time;
inline system_time get_system_time()
{
return boost::date_time::microsec_clock
<system_time>::universal_time();
}
//...
}
So I should either document this or use boost thread's system time.
Regards,
Ion