From d19da6bf1acb72983ef5334d19991b7c6877e426 Mon Sep 17 00:00:00 2001 From: rti Date: Tue, 25 Jan 2011 13:03:40 +0100 Subject: [PATCH] Changed: #1246 Use CFastMutex on PPC as well if Mac or GCC > 4.0.1 --- code/nel/include/nel/misc/mutex.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/code/nel/include/nel/misc/mutex.h b/code/nel/include/nel/misc/mutex.h index e93929ba9..e2205d666 100644 --- a/code/nel/include/nel/misc/mutex.h +++ b/code/nel/include/nel/misc/mutex.h @@ -198,10 +198,10 @@ test_again: * \author Nevrax France * \date 2002, 2003 */ -#ifdef __ppc__ -// on ppc, use fait mutex because we don't have ppc implementation of fast mutex -# define CFastMutex CFairMutex -#else +#if defined(__ppc__) && !defined(NL_OS_MAC) && (GCC_VERSION <= 40100) +# error "no CFastMutex implementation available, try to use GCC >4.0.1" +#endif + #ifdef NL_OS_WINDOWS #pragma managed(push, off) @@ -311,8 +311,6 @@ private: }; -#endif - /** * Fast mutex for multiprocessor implementation (not fairly). * Used for multiprocessor critical section synchronisation.