summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2017-12-21 20:23:14 +0100
committerDiego Biurrun <diego@biurrun.de>2018-04-09 21:58:39 +0200
commitc7ab6aff66cba2f265f656ce8d56aa428d4ada76 (patch)
tree76f98640ac8009927b47a95a8d9825aea046a1d5 /libavcodec
parentc31f6b1d61759436ef50c094e7f4c8005e97614a (diff)
w32pthreads: always use Vista+ API, drop XP support
This removes the XP compatibility code, and switches entirely to SRW 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. Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/pthread_frame.c4
-rw-r--r--libavcodec/pthread_slice.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c
index a72391ba36..338b008f6f 100644
--- a/libavcodec/pthread_frame.c
+++ b/libavcodec/pthread_frame.c
@@ -658,10 +658,6 @@ int ff_frame_thread_init(AVCodecContext *avctx)
FrameThreadContext *fctx;
int i, err = 0;
-#if HAVE_W32THREADS
- w32thread_init();
-#endif
-
if (!thread_count) {
int nb_cpus = av_cpu_count();
av_log(avctx, AV_LOG_DEBUG, "detected %d logical cores\n", nb_cpus);
diff --git a/libavcodec/pthread_slice.c b/libavcodec/pthread_slice.c
index d7c73f0884..d4af37b3f4 100644
--- a/libavcodec/pthread_slice.c
+++ b/libavcodec/pthread_slice.c
@@ -169,10 +169,6 @@ int ff_slice_thread_init(AVCodecContext *avctx)
SliceThreadContext *c;
int thread_count = avctx->thread_count;
-#if HAVE_W32THREADS
- w32thread_init();
-#endif
-
if (!thread_count) {
int nb_cpus = av_cpu_count();
av_log(avctx, AV_LOG_DEBUG, "detected %d logical cores\n", nb_cpus);