From 9b121dfc32810250938021952aab4172a988cb56 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 Dec 2017 20:23:14 +0100 Subject: 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. --- libavutil/slicethread.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libavutil') diff --git a/libavutil/slicethread.c b/libavutil/slicethread.c index c43f87a2aa..dfbe551ef2 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(); -- cgit v1.2.3