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

Unified Diff: third_party/WebKit/Source/wtf/ThreadingPrimitives.h

Issue 2191853002: Remove #if ENABLE(ASSERT) in bool MutexBase::locked(). Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/wtf/ThreadingPthreads.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ThreadingPrimitives.h
diff --git a/third_party/WebKit/Source/wtf/ThreadingPrimitives.h b/third_party/WebKit/Source/wtf/ThreadingPrimitives.h
index f5b8d75bed6e4feb7f5f369c469cbf3ebd21357c..582b6f7aeb96af6cd5f3b5a52befa34bcf23c10d 100644
--- a/third_party/WebKit/Source/wtf/ThreadingPrimitives.h
+++ b/third_party/WebKit/Source/wtf/ThreadingPrimitives.h
@@ -50,9 +50,7 @@ namespace WTF {
#if OS(POSIX)
struct PlatformMutex {
pthread_mutex_t m_internalMutex;
-#if ENABLE(ASSERT)
size_t m_recursionCount;
esprehn 2016/08/05 23:18:56 I don't think we want to do this, it makes all of
-#endif
};
typedef pthread_cond_t PlatformCondition;
#elif OS(WIN)
@@ -83,9 +81,7 @@ public:
void lock();
void unlock();
-#if ENABLE(ASSERT)
bool locked() { return m_mutex.m_recursionCount > 0; }
-#endif
public:
PlatformMutex& impl() { return m_mutex; }
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/ThreadingPthreads.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698