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:45:28 +0000 (13:45 +0100)
commit7fe5d0a78df537542732aa7bd45962f7505255d0
treef1680244ce394d8a6335ac6a1cea98acdbfc2de9
parent871d99ef77336069e5a8ece947c8160d9bc4d5ea
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>
(cherry picked from commit 46a17d886b8559723c40b9f5cdf0e0c6b1c95180)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavutil/thread.h [new file with mode: 0644]