[FFmpeg-devel] [PATCH v2 01/18] avcodec/pthread_slice: Don't reinitialise initialised mutex
    Tomas Härdin 
    tjoppen at acc.umu.se
       
    Fri Jul  1 16:30:35 EEST 2022
    
    
  
tor 2022-06-30 klockan 23:48 +0200 skrev Andreas Rheinhardt:
> It results in undefined behaviour. Instead initialize the mutexes
> and condition variables once during init (and check these
> initializations).
> 
> Also combine the corresponding mutex and condition variable
> into one structure so that one can allocate their array
> jointly.
> 
Makes the code simpler to boot. Nice!
Passes FATE and works with the threading patch I have on here as well.
THREAD_TYPE=slice THREADS=4 and THREAD_TYPE=slice THREADS=1
/Tomas
    
    
More information about the ffmpeg-devel
mailing list