]> granicus.if.org Git - libvpx/commit
Remove threading dependencies with --disable-multithread
authorJohn Koleszar <jkoleszar@google.com>
Fri, 15 Jun 2012 22:40:13 +0000 (15:40 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Mon, 23 Jul 2012 21:23:43 +0000 (14:23 -0700)
commit1a23086bc667054a1da6942750975f53a504c1de
treeedb019ecb86dab5c4bcd1fa78c2e0585134dc3eb
parent363a67c601b7bbd5aba07eefc19b213ab62777e9
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
build/make/rtcd.sh
vp8/common/generic/systemdependent.c
vp8/common/rtcd.c
vp8/vp8_cx_iface.c
vp8/vp8_dx_iface.c
vpx/vpx_decoder.h
vpx/vpx_encoder.h