Index: webrtc/rtc_base/criticalsection.cc |
diff --git a/webrtc/rtc_base/criticalsection.cc b/webrtc/rtc_base/criticalsection.cc |
index 66d8dcf22c64a0e9afe087009bbe272615195cce..08acb13317c787ebc5ac82cafc58c261617cafff 100644 |
--- a/webrtc/rtc_base/criticalsection.cc |
+++ b/webrtc/rtc_base/criticalsection.cc |
@@ -56,7 +56,7 @@ |
#endif |
} |
-void CriticalSection::Enter() const { |
+void CriticalSection::Enter() const EXCLUSIVE_LOCK_FUNCTION() { |
#if defined(WEBRTC_WIN) |
EnterCriticalSection(&crit_); |
#elif defined(WEBRTC_POSIX) |
@@ -115,7 +115,7 @@ |
#endif |
} |
-bool CriticalSection::TryEnter() const { |
+bool CriticalSection::TryEnter() const EXCLUSIVE_TRYLOCK_FUNCTION(true) { |
#if defined(WEBRTC_WIN) |
return TryEnterCriticalSection(&crit_) != FALSE; |
#elif defined(WEBRTC_POSIX) |
@@ -148,7 +148,7 @@ |
#endif |
} |
-void CriticalSection::Leave() const { |
+void CriticalSection::Leave() const UNLOCK_FUNCTION() { |
RTC_DCHECK(CurrentThreadIsOwner()); |
#if defined(WEBRTC_WIN) |
LeaveCriticalSection(&crit_); |