Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: src/platform/mutex.cc

Issue 23970004: Revert r16648, r16641, r16638 and r16637. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/mutex.h ('k') | src/platform/socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/platform/mutex.h ('k') | src/platform/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698