pthread_join() no longer spins
authorBarret Rhoden <brho@cs.berkeley.edu>
Sun, 18 Sep 2011 01:29:35 +0000 (18:29 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:07 +0000 (17:36 -0700)
commit5b57866b57370e3dad3e840de781cfd84097eecf
tree6e247101840efefa0ebd3e3fdfe005818c10a0af
parente9e0888e4fbe52aa12f2f71aa758709f65efa367
pthread_join() no longer spins

It'll now wait on the join_target, which will wake it up when it exits
(depending on how the atomic_swap race went).
user/pthread/pthread.c
user/pthread/pthread.h