2 * Copyright 2009 Colin Günther, coling@gmx.de.
3 * All rights reserved. Distributed under the terms of the MIT License.
7 #include <compat/sys/mutex.h>
8 #include <compat/sys/condvar.h>
13 void cv_init(struct cv
* variable
, const char* description
)
15 conditionInit(variable
, description
);
19 void cv_signal(struct cv
* variable
)
21 conditionNotifyOne(variable
);
25 int cv_timedwait(struct cv
* variable
, struct mtx
* mutex
, int timeout
)
30 status
= conditionTimedWait(variable
, timeout
);
37 void cv_wait(struct cv
* variable
, struct mtx
* mutex
)
40 conditionWait(variable
);