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

Unified Diff: third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h

Issue 2856123004: Fix some m_instVar instances in wtf/ (Closed)
Patch Set: . Created 3 years, 8 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
Index: third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
diff --git a/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h b/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
index 8c5d9391ddb0ec54ca030b22bf197ff509ab0235..6584c4ea996d84010829119f53b5fa5a89d71737 100644
--- a/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
+++ b/third_party/WebKit/Source/platform/wtf/DynamicAnnotations.h
@@ -68,11 +68,11 @@
*
* The most common case requiring annotations is atomic reference counting:
* bool deref() {
- * ANNOTATE_HAPPENS_BEFORE(&m_refCount);
- * if (!atomicDecrement(&m_refCount)) {
- * // m_refCount is now 0
- * ANNOTATE_HAPPENS_AFTER(&m_refCount);
- * // "return true; happens-after each atomicDecrement of m_refCount"
+ * ANNOTATE_HAPPENS_BEFORE(&ref_count_);
+ * if (!atomicDecrement(&ref_count_)) {
+ * // ref_count_ is now 0
+ * ANNOTATE_HAPPENS_AFTER(&ref_count_);
+ * // "return true; happens-after each atomicDecrement of ref_count_"
* return true;
* }
* return false;

Powered by Google App Engine
This is Rietveld 408576698