pthread: Properly change state for running threads
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 20 Oct 2015 18:56:49 +0000 (14:56 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 Oct 2015 16:05:13 +0000 (12:05 -0400)
commit770f325093db21496dae77b42a48f36bd45fa25a
tree07a64c975d7096cf240218d32a8bf0ec516a51aa
parent383de31570adf3c916be7e55254b6495f9cf67ba
pthread: Properly change state for running threads

We were only setting PTH_RUNNING for thread 0 early on.  After that, it
was all PTH_RUNNABLES.  We should now be able to assert that if a thread
is on the active list, it is marked PTH_RUNNING.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/pthread/pthread.c