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