mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-05 11:32:53 +01:00
this internalizes the init checks and provides stronger synchronization with pthreads when available while still allowing VP8GetCPUInfo to be modified (mostly for testing purposes). windows is left as is since a critical section or mutex would cause a leak. Change-Id: Ieb997e014f2805c0ae39c16f13337663521356f4 (cherry picked from commit d77bf512bd0c4ff53019e357a2d24f6c4e3fbefc)