Add a helper to sleep a uthread forever
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 21 Apr 2016 20:50:35 +0000 (13:50 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 2 May 2016 21:11:15 +0000 (17:11 -0400)
commit221727c4b0b7736669d44e9e490086af371bde1c
tree633b65f9f003d74fa9be0db13547a9d16f98a672
parent9c0d0b20a439cd02e6e3b3c3078338c597f104f4
Add a helper to sleep a uthread forever

Just a double-lock on a mutex.  Thread0 for some apps might want to do
this.

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