parlib: sem/mtx/cv: Add init() and destroy()
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 7 Apr 2017 17:25:51 +0000 (13:25 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 3 May 2017 16:13:02 +0000 (12:13 -0400)
commit4ac5806b0314cf00df2aa67400d3305c969ef68f
treec84c2ff7d8d4a8d32d8a1be85c58d449a6d9ed49
parent81cc197b157d1a82c7e2ab2c0f838370d438b042
parlib: sem/mtx/cv: Add init() and destroy()

POSIX semaphores want init() and destroy() methods.  Similarly, GCC's
threading interface needs init() and destroy() for mutexs and CVs.

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