Remove threading dependencies with --disable-multithread
Avoid a pthreads dependency via pthread_once() when compiled with --disable-multithread. In addition, this synchronization is disabled for Win32 as well, even though we can be sure that the required primatives exist, so that the requirements on the application when built with --disable-multithread are consistent across platforms. Users using libvpx built with --disable-multithread in a multithreaded context should provide their own synchronization. Updated the documentation to vpx_codec_enc_init_ver() and vpx_codec_dec_init_ver() to note this requirement. Moved the RTCD initialization call to match this description, as previously it didn't happen until the first frame. Change-Id: Id576f6bce2758362188278d3085051c218a56d4a
Showing
- build/make/rtcd.sh 5 additions, 8 deletionsbuild/make/rtcd.sh
- vp8/common/generic/systemdependent.c 0 additions, 53 deletionsvp8/common/generic/systemdependent.c
- vp8/common/rtcd.c 57 additions, 0 deletionsvp8/common/rtcd.c
- vp8/vp8_cx_iface.c 3 additions, 0 deletionsvp8/vp8_cx_iface.c
- vp8/vp8_dx_iface.c 3 additions, 0 deletionsvp8/vp8_dx_iface.c
- vpx/vpx_decoder.h 4 additions, 0 deletionsvpx/vpx_decoder.h
- vpx/vpx_encoder.h 4 additions, 0 deletionsvpx/vpx_encoder.h
Loading
Please register or sign in to comment