summaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2017-12-21 20:23:14 +0100
committerwm4 <nfxjfg@googlemail.com>2017-12-26 02:49:48 +0100
commit9b121dfc32810250938021952aab4172a988cb56 (patch)
tree4ba00da9da3be930ef112c7e802d3ed12744bef8 /libavutil
parent2aee5a87233277027bb281372f888b5246a58e77 (diff)
downloadffmpeg-streaming-9b121dfc32810250938021952aab4172a988cb56.zip
ffmpeg-streaming-9b121dfc32810250938021952aab4172a988cb56.tar.gz
w32pthreads: always use Vista+ API, drop XP support
This removes the XP compatibility code, and switches entirely to SWR locks, which are available starting at Windows Vista. This removes CRITICAL_SECTION use, which allows us to add PTHREAD_MUTEX_INITIALIZER, which will be useful later. Windows XP is hereby not a supported build target anymore. It was decided in a project vote that this is OK.
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/slicethread.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavutil/slicethread.c b/libavutil/slicethread.c
index c43f87a..dfbe551 100644
--- a/libavutil/slicethread.c
+++ b/libavutil/slicethread.c
@@ -99,10 +99,6 @@ int avpriv_slicethread_create(AVSliceThread **pctx, void *priv,
AVSliceThread *ctx;
int nb_workers, i;
-#if HAVE_W32THREADS
- w32thread_init();
-#endif
-
av_assert0(nb_threads >= 0);
if (!nb_threads) {
int nb_cpus = av_cpu_count();
OpenPOWER on IntegriCloud