Boost logo

Boost :

From: Vaclav Cechura (v2cechura_at_[hidden])
Date: 2007-11-24 06:43:16

Thank you for the note. It's goot to know.
But as you wrote this doesn't seem to be the cause of the crash, because
when I stop using the mutex then the crash is gone.


-----Original Message-----
From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
On Behalf Of Phil Endecott
Sent: Friday, November 23, 2007 5:09 PM
To: boost_at_[hidden]
Subject: Re: [boost] [threads] Using boost::mutex raises access

v2cechura wrote:

> boost::xtime xt = {2};
> boost::thread::sleep(xt);

I presume that you want this to sleep for 2 seconds. I doubt that this is
the reason why your program crashes, but note that xtime should be an
absolute time, not relative (at least, in the version that I'm using). You
need something like:

struct boost::xtime xt;
xtime_get(&xt, boost::TIME_UTC);
xt.sec += 2;


Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at