Boost logo

Boost Users :

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:09:21


nacitar_at_[hidden] wrote:
> I'm using boost svn 50746 (latest at time of writing), on 32-bit
> Ubuntu Intrepid Ibex, with gcc/g++ 4.3.2
>
> This is a simple test case showing that for some reason,
> message_queue::timed_receive is returning immediately for me, not
> throwing an exception, but just returning false which signifies that
> the timeout has been reached.
>
> The output of the program is as follows:
> Current time: 2009-Jan-23 17:40:29
> After delay: 2009-Jan-23 17:40:34
> Timeout at 2009-Jan-23 17:40:29

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.

Regards,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net