| 373 | } |
| 374 | |
| 375 | void |
| 376 | fdset_pipe_notify_sync(struct fdset *fdset) |
| 377 | { |
| 378 | pthread_mutex_lock(&fdset->sync_mutex); |
| 379 | |
| 380 | fdset->sync = false; |
| 381 | fdset_pipe_notify(fdset); |
| 382 | |
| 383 | while (!fdset->sync) |
| 384 | pthread_cond_wait(&fdset->sync_cond, &fdset->sync_mutex); |
| 385 | |
| 386 | pthread_mutex_unlock(&fdset->sync_mutex); |
| 387 | } |
no test coverage detected