2011/12/7 Sergey Radionov <[email protected]>

> I think this patch will not be applied :)
>
> but, I think in current implementation there are another problem: when 2
> jobs exist, one big and long running, and second is short, then second
> thread can end befor first, and it pthread_cond_signal(&c->last_job_cond);
> before long runining job will done.
> How do you think?
>
I was wrong, threre are (c->current_job == thread_count + c->job_count) ...


>
> 2011/12/6 Sergey Radionov <[email protected]>
>
>> Reason for making this patch is https://trac.videolan.org/vlc/ticket/5571
>>
>> Problem is that under windows, when multiple threads waiting on same
>> semaphore, and when ReleaseSemaphore called, it impossible to predict wich
>> thread will wake up...
>>
>
>
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to