[MPlayer-cvslog] r30926 - trunk/loader/win32.c

sesse subversion at mplayerhq.hu
Thu Mar 18 00:33:26 CET 2010


Author: sesse
Date: Thu Mar 18 00:33:26 2010
New Revision: 30926

Log:
Announce SMP support for Win32.

Don't hardcode dwNumberOfProcessors=1 for Win32 anymore; the mutex/event code
is still far from perfect, but now good enough that I can't find any codecs
that breaks with this (tested on a quad with various codecs). This tells
codecs they can use more than one core if they want to (some already did, by
launching multiple threads even when told there was only a single core).

Modified:
   trunk/loader/win32.c

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	Wed Mar 17 15:41:32 2010	(r30925)
+++ trunk/loader/win32.c	Thu Mar 18 00:33:26 2010	(r30926)
@@ -1182,13 +1182,6 @@ static void WINAPI expGetSystemInfo(SYST
 	    }
 	}
 	fclose (f);
-	/*
-	 *	ad hoc fix for smp machines.
-	 *	some problems on WaitForSingleObject,CreateEvent,SetEvent
-	 *			CreateThread ...etc..
-	 *
-	 */
-	cachedsi.dwNumberOfProcessors=1;
     }
 #endif /* __linux__ */
     cache = 1;


More information about the MPlayer-cvslog mailing list