Jason Evans 651974ee92 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.
2001-06-27 11:41:15 +00:00
..
1999-08-28 00:22:10 +00:00
2001-06-27 06:01:17 +00:00
1999-08-28 00:22:10 +00:00
2001-05-20 23:12:13 +00:00