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

Unified Diff: webrtc/base/stream.cc

Issue 1677333002: Added thread annotations to FifoBuffer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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/stream.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/stream.cc
diff --git a/webrtc/base/stream.cc b/webrtc/base/stream.cc
index e22c3d8aa4ef567ea656183cedb500af5623a539..1ddff1cf0a629c2538960b2c2d5399d16eb10c3c 100644
--- a/webrtc/base/stream.cc
+++ b/webrtc/base/stream.cc
@@ -741,6 +741,7 @@ StreamResult FifoBuffer::WriteOffset(const void* buffer, size_t bytes,
}
StreamState FifoBuffer::GetState() const {
+ CritScope cs(&crit_);
return state_;
}
« no previous file with comments | « webrtc/base/stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698