Pthreads now uses mcs_pdr locks
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 12 Oct 2011 23:24:20 +0000 (16:24 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 15 Dec 2011 22:48:39 +0000 (14:48 -0800)
commit6c546ffe4e3d7fcd7d7b6365f0f34106e983be48
tree9fdc996af9bb4344086d3a78f5809ddf81a6f310
parent48f44a2634991655d1463fa3bd65e660ab725fad
Pthreads now uses mcs_pdr locks

Instead of the old notif_safe MCS ones.  Note that the MCS-PDR locks are
notif_safe, and can be called from uthread context.

For those curious, pthread code has functions that lock that are called
from uthread context and from vcore context.  Specifically,
uthread_runnable/pth_thread_runnable can come from
uthread_init/pthread_create, which is uthread context, and
restart_thread, which is vcore context.  Plus, the pth_sched_entry
hammers the same runqueue lock in vcore context.
user/pthread/pthread.c