1 #include <threads.h>
2
cnd_wait(cnd_t * c,mtx_t * m)3 int cnd_wait(cnd_t* c, mtx_t* m) {
4 /* Calling cnd_timedwait with a null pointer is an extension.
5 * It is convenient here to avoid duplication of the logic
6 * for return values. */
7 return cnd_timedwait(c, m, 0);
8 }
9