Lines Matching defs:prev_thread
107 PerThreadContext *prev_thread; ///< The last thread submit_packet() was called on.
322 PerThreadContext *prev_thread = fctx->prev_thread;
331 if (prev_thread) {
333 if (prev_thread->state == STATE_SETTING_UP) {
334 pthread_mutex_lock(&prev_thread->progress_mutex);
335 while (prev_thread->state == STATE_SETTING_UP)
336 pthread_cond_wait(&prev_thread->progress_cond, &prev_thread->progress_mutex);
337 pthread_mutex_unlock(&prev_thread->progress_mutex);
340 err = update_context_from_thread(p->avctx, prev_thread->avctx, 0);
393 fctx->prev_thread = p;
550 if (fctx->prev_thread && fctx->prev_thread != fctx->threads)
551 if (update_context_from_thread(fctx->threads->avctx, fctx->prev_thread->avctx, 0) < 0) {
553 fctx->prev_thread->avctx->internal->is_copy = fctx->threads->avctx->internal->is_copy;
718 if (fctx->prev_thread) {
719 if (fctx->prev_thread != &fctx->threads[0])
720 update_context_from_thread(fctx->threads[0].avctx, fctx->prev_thread->avctx, 0);
725 fctx->prev_thread = NULL;