parlib: Add a thread_bulk_runnable() 2LS op
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 28 Apr 2017 16:31:29 +0000 (12:31 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:16:41 +0000 (12:16 -0400)
commitce476adff0f377ddae211fb5d4916d5a3cfec74f
tree08611d20812a57d68b68890aa69520723e40ade5
parentfa13afbdeca4cd17101fedf6243b6f6be05921b8
parlib: Add a thread_bulk_runnable() 2LS op

If the 2LS knows it is waking up N threads, it can make better decisions or
otherwise perform better.  This gives us a 3x improvement on
pthread barriers.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/include/parlib/uthread.h
user/parlib/mutex.c
user/pthread/pthread.c