Pthread code calls uthread_runnable() consistently
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 18 Apr 2012 19:23:53 +0000 (12:23 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 18 Apr 2012 19:23:53 +0000 (12:23 -0700)
commit1ff93476c06fff026a396bebf16e116a16615cff
tree988091a27964b61096e0db8526bcc7937cb1abc5
parent76b5d7965520a7889fa6810117b417e06aec20ac
Pthread code calls uthread_runnable() consistently

We were doing a mix of calling the schedop directly and indirectly
(uth_runnable).  This is a little slower, but all paths involving waking
up a uthread go through the same code now.  External code (e.g. mutex
libraries) will use uthread_runnable().
user/pthread/pthread.c