
30 Mar
2009
30 Mar
'09
2:13 p.m.
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@gmail.com>
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