| 160 | } |
| 161 | |
| 162 | static void async_lock(FrameThreadContext *fctx) |
| 163 | { |
| 164 | pthread_mutex_lock(&fctx->async_mutex); |
| 165 | while (fctx->async_lock) |
| 166 | pthread_cond_wait(&fctx->async_cond, &fctx->async_mutex); |
| 167 | fctx->async_lock = 1; |
| 168 | pthread_mutex_unlock(&fctx->async_mutex); |
| 169 | } |
| 170 | |
| 171 | static void async_unlock(FrameThreadContext *fctx) |
| 172 | { |
no test coverage detected