11 Jun
2004
11 Jun
'04
3:19 p.m.
Ben Hutchings wrote:
Tristan King
wrote: Hi, I'm having trouble getting shared_ptr objects and threads to work in harmony. [snip] can anyone give me any pointers on how to get around this problem?
<snip>
I suggest you create your thread objects with 'new' instead, or else define an array of them outside the loop.
Or just don't use boost:ref, and have the thread function objects copied. -- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq