K 10 svn:author V 6 jasone K 8 svn:date V 27 2001-06-27T11:41:15.000000Z K 7 svn:log V 432 Fix a race condition in pthread_join(). All of the following must occur atomically: 1) Search _thread_list for the thread to join. 2) Search _dead_list for the thread to join. 3) Set the running thread as the joiner. While we're at it, fix a race in the case where multiple threads try to join on the same thread. POSIX says that the behavior of multiple joiners is undefined, but the fix is cheap as a result of the other fix. END