21 May
2002
21 May
'02
10:03 p.m.
giltayar wrote:
1. On the multi-join/default constructor issue:
Hmmm... hadn't noticed the default ctor. The multi-join issue is a valid one. How I would solve it is for the dtor to "know" whether a join was called (using a private member), i.e. whether thread is alive or not, and thus know whether to join() it.
Nah, *detach()* it -- if NOT already joined: http://www.terekhov.de/mythread.c http://www.terekhov.de/thread_ptr.txt http://sources.redhat.com/pthreads-win32 regards, alexander.