DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24989>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24989 Porting ThreadSafe sample to Unix platforms ------- Additional Comments From [EMAIL PROTECTED] 2004-01-06 03:11 ------- I don't believe this patch will work, because the first call to pthread_join will not return until that thread has quit. If the threads finish asynchronously, how will pthread_join work? On Win32 it's not a problem, because we start all of the threads and do a wait on the thread handles, but that seems less prone to error, because we don't loop through the handles, and it's no problem if one or even all of the threads are finished before we start waiting. Is there a way using pthreads to distinguish between trying to join a thread that's finished and some other error, and, more importantly, can you really join multiple threads like this? I'm not an expert on pthreads, so I don't really have the answers.
