Changed: #1246 Use CFastMutex on PPC as well if Mac or GCC > 4.0.1

This commit is contained in:
rti 2011-01-25 13:03:40 +01:00
parent 0423c18309
commit 936545fe64

View file

@ -198,10 +198,10 @@ test_again:
* \author Nevrax France * \author Nevrax France
* \date 2002, 2003 * \date 2002, 2003
*/ */
#ifdef __ppc__ #if defined(__ppc__) && !defined(NL_OS_MAC) && (GCC_VERSION <= 40100)
// on ppc, use fait mutex because we don't have ppc implementation of fast mutex # error "no CFastMutex implementation available, try to use GCC >4.0.1"
# define CFastMutex CFairMutex #endif
#else
#ifdef NL_OS_WINDOWS #ifdef NL_OS_WINDOWS
#pragma managed(push, off) #pragma managed(push, off)
@ -311,8 +311,6 @@ private:
}; };
#endif
/** /**
* Fast mutex for multiprocessor implementation (not fairly). * Fast mutex for multiprocessor implementation (not fairly).
* Used for multiprocessor critical section synchronisation. * Used for multiprocessor critical section synchronisation.