cnd_wait.c 240 B

123456789
  1. #include <threads.h>
  2. int cnd_wait(cnd_t *c, mtx_t *m)
  3. {
  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. }