[MPlayer-dev-eng] [PATCH] Use native Windows thread API when pthread isn't available
Zuxy Meng
zuxy.meng at gmail.com
Wed Jul 4 15:19:00 CEST 2007
Hi,
ffmpeg support native windows thread (w32threads) so users can enable
multithreaded decoding/encoding even without pthread-win32.
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
Index: configure
===================================================================
--- configure ?????? 23715??
+++ configure ????????????
@@ -270,6 +270,7 @@
--disable-ftp disable FTP support [enabled]
--disable-vstream disable TiVo vstream client support [autodetect]
--disable-pthreads disable Posix threads support [autodetect]
+ --disable-w32threads disable Win32 threads support [autodetect]
--disable-ass disable internal SSA/ASS subtitle support [autodetect]
--enable-rpath enable runtime linker path for extra libs [disabled]
@@ -644,6 +645,7 @@
_musepack=auto
_vstream=auto
_pthreads=auto
+_w32threads=auto
_ass=auto
_rpath=no
_asmalign_pot=auto
@@ -1061,6 +1063,8 @@
--disable-vstream) _vstream=no ;;
--enable-pthreads) _pthreads=yes ;;
--disable-pthreads) _pthreads=no ;;
+ --enable-w32threads) _w32threads=yes ;;
+ --disable-w32threads) _w32threads=no ;;
--enable-ass) _ass=yes ;;
--disable-ass) _ass=no ;;
--enable-rpath) _rpath=yes ;;
@@ -3056,6 +3063,18 @@
fi
echores "$_pthreads"
+echocheck "w32threads"
+if test "$_pthreads" = yes ; then
+ _res_comment="using pthread instead"
+ _w32threads=no
+fi
+if test "$_w32threads" = auto ; then
+ _w32threads=no
+ mingw32 && _w32threads=yes
+fi
+test "$_w32threads" = yes && _def_threads='#define HAVE_THREADS 1'
+echores "$_w32threads"
+
echocheck "rpath"
netbsd &&_rpath=yes
if test "$_rpath" = yes ; then
@@ -7482,6 +7501,7 @@
HAVE_MLIB = $_mlib
HAVE_PTHREADS = $_pthreads
+HAVE_W32THREADS = $_w32threads
HAVE_XVMC_ACCEL = $_xvmc
More information about the MPlayer-dev-eng
mailing list