Thread0 can call pthread_exit()
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 9 Aug 2013 23:41:11 +0000 (16:41 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 9 Aug 2013 23:41:11 +0000 (16:41 -0700)
commit08b307b76c4d3bf9e40fe1695a9cbf24cd15c393
tree7c88e6d2f791352bb2581551f38ecf34ae64f91a
parentd50d2876658b443b3bf08dbd450a04814b0aafff
Thread0 can call pthread_exit()

Needed to not free thread0's TLS (it was never malloc'd), and needed to
trigger exit() when the last pthread (including thread0) exits.
user/parlib/include/uthread.h
user/parlib/uthread.c
user/pthread/pthread.c