parlib: Add trylock to uthread mutexes
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 6 Mar 2017 20:14:50 +0000 (15:14 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:13:02 +0000 (12:13 -0400)
commit19dc5ad735f8f4bf330bf52c9d36d5b03ed7c909
tree1422af83d5c1cf043c875b718a2490cc139320a9
parent5b5e37b7d9c80047b791196cedd9c2b796577dc0
parlib: Add trylock to uthread mutexes

GCC needs this, and other people might too.

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