Remove threading dependencies with --disable-multithread
commit8df79e9d427fe2e334f110a8abfe3e43449d87c4
authorJohn Koleszar <jkoleszar@google.com>
Fri, 15 Jun 2012 22:40:13 +0000 (15 15:40 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 15 Jun 2012 23:26:39 +0000 (15 16:26 -0700)
treec8283f130d56f73be77e1aeb36d9f3e530c29a2d
parent0164a1cc5b13909407587109effabea92e487986
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