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

Unified Diff: webrtc/base/criticalsection.cc

Issue 2128583003: Remove unused CriticalSection::IsLocked() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.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 | « webrtc/base/criticalsection.h ('k') | webrtc/base/criticalsection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/criticalsection.cc
diff --git a/webrtc/base/criticalsection.cc b/webrtc/base/criticalsection.cc
index 63582ebae8c3e716047e2fd0dca869983b30a8c0..b15bb82ef4fb40da3f96a476fe09fec23e5c1fb2 100644
--- a/webrtc/base/criticalsection.cc
+++ b/webrtc/base/criticalsection.cc
@@ -180,18 +180,6 @@ bool CriticalSection::CurrentThreadIsOwner() const {
#endif
}
-bool CriticalSection::IsLocked() const {
-#if defined(WEBRTC_WIN)
- return crit_.LockCount != -1;
-#else
-#if CS_DEBUG_CHECKS
- return thread_ != 0;
-#else
- return true;
-#endif
-#endif
-}
-
CritScope::CritScope(const CriticalSection* cs) : cs_(cs) { cs_->Enter(); }
CritScope::~CritScope() { cs_->Leave(); }
« no previous file with comments | « webrtc/base/criticalsection.h ('k') | webrtc/base/criticalsection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698