Fixes pthread_attr functions
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 2 Feb 2011 22:49:21 +0000 (14:49 -0800)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:57 +0000 (17:35 -0700)
commit526b35f4ba37333d24bc56b7c6e014a5786ddede
treec9a935cc4708db073ea8283830c84c3da29d1952
parent276c0db1e92479ff1c5a7ef8b6bb9c1f5950528a
Fixes pthread_attr functions

1) Memory leak with the pthread_attr.  Caller handles the memory.
2) Need defaults, in case an attr isn't used for pthread create.
3) Some functions weren't returning.
4) Changed names and types to reflect 'detachstate' being the preference
for a new thread, while 'detached' is a bool regarding the actual state.
user/include/pthread.h
user/parlib/pthread.c