Tracks state properly for paused uthreads
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 23 Apr 2012 22:56:39 +0000 (15:56 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 23 Apr 2012 22:56:39 +0000 (15:56 -0700)
commit36195a3f25c138ea290dbb707e7a2a3edf71a43f
tree4866a6677a84c3037f4c9e92e18300f31bd9f7ce
parent42ff6d79fb47a0ac1a949b556e017bd64e29f4f5
Tracks state properly for paused uthreads

Pthreads uses a state for threads stopped from below (currently only for
preemptions (either pending or recoverery)).

Uthreads just tracks them as NOT_RUNNABLE.

This patch also provides a helper for the three usages of
copyout/sched_ops->paused.  Depending on what 2LSs need, we might
provide copyout directly again, but for now we'll leave it as an
internal helper.
user/parlib/include/uthread.h
user/parlib/uthread.c
user/pthread/pthread.c
user/pthread/pthread.h