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

Unified Diff: src/base/platform/mutex.h

Issue 526223002: Use Chrome compatible naming for compiler specifics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips Created 6 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/base/platform/elapsed-timer.h ('k') | src/base/platform/platform-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/mutex.h
diff --git a/src/base/platform/mutex.h b/src/base/platform/mutex.h
index 2f8c07d89e58b0358caa5598b1f1964ba3fc767d..5d0e57be57cb8141eee5fceaa37581b0679c6e46 100644
--- a/src/base/platform/mutex.h
+++ b/src/base/platform/mutex.h
@@ -33,7 +33,7 @@ namespace base {
// |TryLock()|. The behavior of a program is undefined if a mutex is destroyed
// while still owned by some thread. The Mutex class is non-copyable.
-class Mutex V8_FINAL {
+class Mutex FINAL {
public:
Mutex();
~Mutex();
@@ -50,7 +50,7 @@ class Mutex V8_FINAL {
// Tries to lock the given mutex. Returns whether the mutex was
// successfully locked.
- bool TryLock() V8_WARN_UNUSED_RESULT;
+ bool TryLock() WARN_UNUSED_RESULT;
// The implementation-defined native handle type.
#if V8_OS_POSIX
@@ -127,7 +127,7 @@ typedef LazyStaticInstance<Mutex, DefaultConstructTrait<Mutex>,
// The behavior of a program is undefined if a recursive mutex is destroyed
// while still owned by some thread. The RecursiveMutex class is non-copyable.
-class RecursiveMutex V8_FINAL {
+class RecursiveMutex FINAL {
public:
RecursiveMutex();
~RecursiveMutex();
@@ -149,7 +149,7 @@ class RecursiveMutex V8_FINAL {
// Tries to lock the given mutex. Returns whether the mutex was
// successfully locked.
- bool TryLock() V8_WARN_UNUSED_RESULT;
+ bool TryLock() WARN_UNUSED_RESULT;
// The implementation-defined native handle type.
typedef Mutex::NativeHandle NativeHandle;
@@ -199,7 +199,7 @@ typedef LazyStaticInstance<RecursiveMutex,
// The LockGuard class is non-copyable.
template <typename Mutex>
-class LockGuard V8_FINAL {
+class LockGuard FINAL {
public:
explicit LockGuard(Mutex* mutex) : mutex_(mutex) { mutex_->Lock(); }
~LockGuard() { mutex_->Unlock(); }
« no previous file with comments | « src/base/platform/elapsed-timer.h ('k') | src/base/platform/platform-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698