Re: [FFmpeg-devel] [PATCH v2] avcodec/pthread_slice: rewrite implementation

2017-07-10 Thread Muhammad Faiz
On Mon, Jul 10, 2017 at 4:25 PM, wm4 wrote: > On Sun, 9 Jul 2017 23:26:54 +0700 > Muhammad Faiz wrote: > >> Avoid pthread_cond_broadcast that wakes up all workers. Make each of them >> uses distict mutex/cond. Also let main thread help running jobs, but still >> allocate thread_count workers. Th

Re: [FFmpeg-devel] [PATCH v2] avcodec/pthread_slice: rewrite implementation

2017-07-10 Thread wm4
On Sun, 9 Jul 2017 23:26:54 +0700 Muhammad Faiz wrote: > Avoid pthread_cond_broadcast that wakes up all workers. Make each of them > uses distict mutex/cond. Also let main thread help running jobs, but still > allocate thread_count workers. The last worker is currently unused, emulated > by main

[FFmpeg-devel] [PATCH v2] avcodec/pthread_slice: rewrite implementation

2017-07-09 Thread Muhammad Faiz
Avoid pthread_cond_broadcast that wakes up all workers. Make each of them uses distict mutex/cond. Also let main thread help running jobs, but still allocate thread_count workers. The last worker is currently unused, emulated by main thread. Similar to 'avfilter/pthread: rewrite implementation' Be