$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-06-11 10:19:23
Ben Hutchings wrote:
> Tristan King <tristanking_at_[hidden]> 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