Changed: #1246 Use CFastMutex on PPC as well if Mac or GCC > 4.0.1
This commit is contained in:
parent
ecef8fdbfd
commit
d19da6bf1a
1 changed files with 4 additions and 6 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue