Lines Matching defs:prev_thread
140 PerThreadContext *prev_thread; ///< The last thread submit_packet() was called on.
520 PerThreadContext *prev_thread = fctx->prev_thread;
530 if (prev_thread) {
532 if (prev_thread->state == STATE_SETTING_UP) {
533 pthread_mutex_lock(&prev_thread->progress_mutex);
534 while (prev_thread->state == STATE_SETTING_UP)
535 pthread_cond_wait(&prev_thread->progress_cond, &prev_thread->progress_mutex);
536 pthread_mutex_unlock(&prev_thread->progress_mutex);
539 err = update_context_from_thread(p->avctx, prev_thread->avctx, 0);
578 fctx->prev_thread = p;
732 if (fctx->prev_thread && fctx->prev_thread != fctx->threads)
733 update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0);
878 if (fctx->prev_thread) {
879 if (fctx->prev_thread != &fctx->threads[0])
880 update_context_from_thread(fctx->threads[0].avctx, fctx->prev_thread->avctx, 0);
887 fctx->prev_thread = NULL;