lavu: add wrappers for the pthreads mutex API

Multimedia / Libav - Anton Khirnov [khirnov.net] - 27 November 2014 06:36 UTC

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.

2443e52 lavu: add wrappers for the pthreads mutex API
libavutil/thread.h | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)

Upstream: git.libav.org


  • Share