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

Unified Diff: webrtc/rtc_base/swap_queue.h

Issue 3006133002: Update thread annotiation macros in rtc_base to use RTC_ prefix (Closed)
Patch Set: Rebase Created 3 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 | « webrtc/rtc_base/stream.h ('k') | webrtc/rtc_base/task_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/swap_queue.h
diff --git a/webrtc/rtc_base/swap_queue.h b/webrtc/rtc_base/swap_queue.h
index 3519686af996c81be3473a6ef16e57fc2ba3177c..95bae21bb8654c423c1399fbe7736bf8764e2100 100644
--- a/webrtc/rtc_base/swap_queue.h
+++ b/webrtc/rtc_base/swap_queue.h
@@ -192,16 +192,16 @@ class SwapQueue {
// TODO(peah): Change this to use std::function() once we can use C++11 std
// lib.
- QueueItemVerifier queue_item_verifier_ GUARDED_BY(crit_queue_);
+ QueueItemVerifier queue_item_verifier_ RTC_GUARDED_BY(crit_queue_);
// (next_read_index_ + num_elements_) % queue_.size() =
// next_write_index_
- size_t next_write_index_ GUARDED_BY(crit_queue_) = 0;
- size_t next_read_index_ GUARDED_BY(crit_queue_) = 0;
- size_t num_elements_ GUARDED_BY(crit_queue_) = 0;
+ size_t next_write_index_ RTC_GUARDED_BY(crit_queue_) = 0;
+ size_t next_read_index_ RTC_GUARDED_BY(crit_queue_) = 0;
+ size_t num_elements_ RTC_GUARDED_BY(crit_queue_) = 0;
// queue_.size() is constant.
- std::vector<T> queue_ GUARDED_BY(crit_queue_);
+ std::vector<T> queue_ RTC_GUARDED_BY(crit_queue_);
RTC_DISALLOW_COPY_AND_ASSIGN(SwapQueue);
};
« no previous file with comments | « webrtc/rtc_base/stream.h ('k') | webrtc/rtc_base/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698