| 45 | extern int bthread_mutex_lock_contended(bthread_mutex_t*); |
| 46 | |
| 47 | int bthread_cond_init(bthread_cond_t* __restrict c, |
| 48 | const bthread_condattr_t*) { |
| 49 | c->m = NULL; |
| 50 | c->seq = bthread::butex_create_checked<int>(); |
| 51 | *c->seq = 0; |
| 52 | return 0; |
| 53 | } |
| 54 | |
| 55 | int bthread_cond_destroy(bthread_cond_t* c) { |
| 56 | bthread::butex_destroy(c->seq); |
no outgoing calls