]> granicus.if.org Git - libvpx/commit
rtcd: serialize function pointer initialization
authorJohn Koleszar <jkoleszar@google.com>
Wed, 18 Apr 2012 23:03:40 +0000 (16:03 -0700)
committerJohn Koleszar <jkoleszar@google.com>
Thu, 19 Apr 2012 21:15:23 +0000 (14:15 -0700)
commitc311b3b3a9ceb0e45e0d5969bb20f1e95dbd9059
tree57cc8e4cd3ae40bc7dfae43685f40ecc96368bc2
parent21173e19994a7ffcbdc321c35c8c8ea8e6219b78
rtcd: serialize function pointer initialization

Ensure that RTCD function pointers are set at most once, to silence
some data race warnings. Implementation provided for POSIX threads and
Win32, with the prior unsynchronized behavior left in place for other
platforms.

Change-Id: I65c5856df43ef67043b3d5f26ddafddd8fcb2f7e
vp8/common/generic/systemdependent.c