diff options
author | wm4 <nfxjfg@googlemail.com> | 2017-12-21 20:23:14 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2018-04-09 21:58:39 +0200 |
commit | c7ab6aff66cba2f265f656ce8d56aa428d4ada76 (patch) | |
tree | 76f98640ac8009927b47a95a8d9825aea046a1d5 /libavcodec/pthread_frame.c | |
parent | c31f6b1d61759436ef50c094e7f4c8005e97614a (diff) | |
download | ffmpeg-c7ab6aff66cba2f265f656ce8d56aa428d4ada76.tar.gz |
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/pthread_frame.c')
-rw-r--r-- | libavcodec/pthread_frame.c | 4 |
1 files changed, 0 insertions, 4 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); |