$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Kevin Heifner (heifnerk_at_[hidden])
Date: 2008-05-15 11:26:31
Axel wrote:
> Igor R. wrote:
>> Look at thread::join(), thread_group::join()
>>
> This implies that I keep a reference of all created threads. Since the
> program aims to run 24/24, 7/7, and could create thousands of threads
> before the program receive the command to stop, I thought it was a bad
> idea to keep the threads references in a thread_group.
Ah, I see. In that case, I would second the recommendation by
Alex MDC to use a condition variable instead of your sleep.
KevinH
-- Kevin Heifner heifner @ ociweb.com http://heifner.blogspot.com Object Computing, Inc. (OCI) www.ociweb.com