lavu: add wrappers for the pthreads mutex API
authorAnton Khirnov <anton@khirnov.net>
Sun, 23 Nov 2014 20:25:05 +0000 (21:25 +0100)
committerAnton Khirnov <anton@khirnov.net>
Thu, 27 Nov 2014 12:38:27 +0000 (13:38 +0100)
commit46a17d886b8559723c40b9f5cdf0e0c6b1c95180
tree8dc882d476099e5ca336a3e960df8d74a8f959cf
parent12700b0219521a5f20c8ba47b3ad7857ea9e0554
lavu: add wrappers for the pthreads mutex API

Also add no-op fallbacks when threading is disabled.

This helps keeping the code clean if Libav is compiled for targets
without threading. Since we assume that no threads of any kind are used
in such configurations, doing nothing is ok by definition.

Based on a patch by wm4 <nfxjfg@googlemail.com>.

(cherry picked from commit 2443e522f0059176ff8717c9c753eb6fe7e7bbf1)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavutil/thread.h [new file with mode: 0644]