parlib: Add __uth_sync_swap and __uth_sync_is_empty
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 28 Apr 2017 16:14:19 +0000 (12:14 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:16:41 +0000 (12:16 -0400)
commitfa13afbdeca4cd17101fedf6243b6f6be05921b8
treeb1b83dca276ef7390a0afc0f090846367ffd0383
parent9e6927a5a4b7ae55a4162abf61f1f3481f62f993
parlib: Add __uth_sync_swap and __uth_sync_is_empty

These are helper methods, useful for bulk wakeups.

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