Pthread state tracking
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 18 Apr 2012 20:52:12 +0000 (13:52 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 18 Apr 2012 20:52:12 +0000 (13:52 -0700)
commit193ff7ab937287b6ec74e6dc6326c9927f146b38
tree71ad50274936de60b796f9194a6e935106ff6f26
parent1ff93476c06fff026a396bebf16e116a16615cff
Pthread state tracking

We don't do anything smart in pth_thread_runnable(), but that's where
you can make different decisions on what to do with the thread based on
why it slept/woke up.

All yielding/blocking paths will touch the 2LS (pthread in this case),
and that is where the 2LS can record info (states) for later
(thread_runnable).
user/pthread/pthread.c
user/pthread/pthread.h