
15 May
2008
15 May
'08
3:26 p.m.
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