Boost logo

Boost :

Subject: Re: [boost] [thread] Assertion failed get_system_time_sentinel()
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-03-30 10:13:28


AMDG

Filip Klasson wrote:
> Here is an example that demonstrates the problem:
>
> //TestBoostTimeSentinel.cpp:
> #include "Test.h"
>
> void main()
> {
> for (int i=0; i<100; i++) {
> Test* a = new Test();
> delete a;
>

The other thread is still using a.

> <snip>
>
> 2009/3/30 Anthony Williams <anthony.ajw_at_[hidden]>
>
>
>> What is the lifetime of the various elements _mutex, _condition and
>> _queue? Is it possible that they have been destroyed by another thread?
>>

Sure enough.

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk