Fixed Linux compile errors.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@398 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -609,6 +609,10 @@
|
||||
****************************************************************************/
|
||||
flminterface IF_Object
|
||||
{
|
||||
virtual ~IF_Object()
|
||||
{
|
||||
}
|
||||
|
||||
virtual FLMINT FLMAPI getRefCount( void) = 0;
|
||||
|
||||
virtual FLMINT FLMAPI AddRef( void) = 0;
|
||||
|
||||
@@ -1554,10 +1554,10 @@ FLMINT32 posix_atomic_add_32(
|
||||
{
|
||||
FLMINT32 i32RetVal;
|
||||
|
||||
pthread_mutex_lock( gv_atomicMutex);
|
||||
pthread_mutex_lock( &gv_atomicMutex);
|
||||
(*piTarget) += iDelta;
|
||||
i32RetVal = *piTarget;
|
||||
pthread_mutex_unlock( gv_atomicMutex);
|
||||
pthread_mutex_unlock( &gv_atomicMutex);
|
||||
|
||||
return( i32RetVal);
|
||||
}
|
||||
@@ -1571,10 +1571,10 @@ FLMINT32 posix_atomic_xchg_32(
|
||||
{
|
||||
FLMINT32 i32RetVal;
|
||||
|
||||
pthread_mutex_lock( gv_atomicMutex);
|
||||
pthread_mutex_lock( &gv_atomicMutex);
|
||||
i32RetVal = *piTarget;
|
||||
*piTarget = iNewValue;
|
||||
pthread_mutex_unlock( gv_atomicMutex);
|
||||
pthread_mutex_unlock( &gv_atomicMutex);
|
||||
|
||||
return( i32RetVal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user