Index: src/platform/mutex.cc |
diff --git a/src/platform/mutex.cc b/src/platform/mutex.cc |
index ad97740995dfed2f4e36de0853715c1a80d9dfcb..1a7c69af78ce1d40d55fa2ea65e0202b8a24c831 100644 |
--- a/src/platform/mutex.cc |
+++ b/src/platform/mutex.cc |
@@ -34,7 +34,7 @@ namespace internal { |
#if V8_OS_POSIX |
-static V8_INLINE void InitializeNativeHandle(pthread_mutex_t* mutex) { |
+static V8_INLINE(void InitializeNativeHandle(pthread_mutex_t* mutex)) { |
int result; |
#if defined(DEBUG) |
// Use an error checking mutex in debug mode. |
@@ -55,7 +55,7 @@ static V8_INLINE void InitializeNativeHandle(pthread_mutex_t* mutex) { |
} |
-static V8_INLINE void InitializeRecursiveNativeHandle(pthread_mutex_t* mutex) { |
+static V8_INLINE(void InitializeRecursiveNativeHandle(pthread_mutex_t* mutex)) { |
pthread_mutexattr_t attr; |
int result = pthread_mutexattr_init(&attr); |
ASSERT_EQ(0, result); |
@@ -69,28 +69,28 @@ static V8_INLINE void InitializeRecursiveNativeHandle(pthread_mutex_t* mutex) { |
} |
-static V8_INLINE void DestroyNativeHandle(pthread_mutex_t* mutex) { |
+static V8_INLINE(void DestroyNativeHandle(pthread_mutex_t* mutex)) { |
int result = pthread_mutex_destroy(mutex); |
ASSERT_EQ(0, result); |
USE(result); |
} |
-static V8_INLINE void LockNativeHandle(pthread_mutex_t* mutex) { |
+static V8_INLINE(void LockNativeHandle(pthread_mutex_t* mutex)) { |
int result = pthread_mutex_lock(mutex); |
ASSERT_EQ(0, result); |
USE(result); |
} |
-static V8_INLINE void UnlockNativeHandle(pthread_mutex_t* mutex) { |
+static V8_INLINE(void UnlockNativeHandle(pthread_mutex_t* mutex)) { |
int result = pthread_mutex_unlock(mutex); |
ASSERT_EQ(0, result); |
USE(result); |
} |
-static V8_INLINE bool TryLockNativeHandle(pthread_mutex_t* mutex) { |
+static V8_INLINE(bool TryLockNativeHandle(pthread_mutex_t* mutex)) { |
int result = pthread_mutex_trylock(mutex); |
if (result == EBUSY) { |
return false; |
@@ -101,32 +101,32 @@ static V8_INLINE bool TryLockNativeHandle(pthread_mutex_t* mutex) { |
#elif V8_OS_WIN |
-static V8_INLINE void InitializeNativeHandle(PCRITICAL_SECTION cs) { |
+static V8_INLINE(void InitializeNativeHandle(PCRITICAL_SECTION cs)) { |
InitializeCriticalSection(cs); |
} |
-static V8_INLINE void InitializeRecursiveNativeHandle(PCRITICAL_SECTION cs) { |
+static V8_INLINE(void InitializeRecursiveNativeHandle(PCRITICAL_SECTION cs)) { |
InitializeCriticalSection(cs); |
} |
-static V8_INLINE void DestroyNativeHandle(PCRITICAL_SECTION cs) { |
+static V8_INLINE(void DestroyNativeHandle(PCRITICAL_SECTION cs)) { |
DeleteCriticalSection(cs); |
} |
-static V8_INLINE void LockNativeHandle(PCRITICAL_SECTION cs) { |
+static V8_INLINE(void LockNativeHandle(PCRITICAL_SECTION cs)) { |
EnterCriticalSection(cs); |
} |
-static V8_INLINE void UnlockNativeHandle(PCRITICAL_SECTION cs) { |
+static V8_INLINE(void UnlockNativeHandle(PCRITICAL_SECTION cs)) { |
LeaveCriticalSection(cs); |
} |
-static V8_INLINE bool TryLockNativeHandle(PCRITICAL_SECTION cs) { |
+static V8_INLINE(bool TryLockNativeHandle(PCRITICAL_SECTION cs)) { |
return TryEnterCriticalSection(cs); |
} |