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

Unified Diff: third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h

Issue 2386843002: reflow comments in wtf (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 | « third_party/WebKit/Source/wtf/TerminatedArray.h ('k') | third_party/WebKit/Source/wtf/ThreadSpecific.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h
diff --git a/third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h b/third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h
index 66d6672c4ae75fdee403f84e9eb90344bb7898b8..c28853641ca60d20cbb378f5f1107e96014e09b8 100644
--- a/third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h
+++ b/third_party/WebKit/Source/wtf/ThreadRestrictionVerifier.h
@@ -39,10 +39,11 @@
namespace WTF {
-// Verifies that a class is used in a way that respects its lack of thread-safety.
-// The default mode is to verify that the object will only be used on a single thread. The
-// thread gets captured when setShared(true) is called.
-// The mode may be changed by calling useMutexMode (or turnOffVerification).
+// Verifies that a class is used in a way that respects its lack of
+// thread-safety. The default mode is to verify that the object will only be
+// used on a single thread. The thread gets captured when setShared(true) is
+// called. The mode may be changed by calling useMutexMode (or
+// turnOffVerification).
class ThreadRestrictionVerifier {
public:
ThreadRestrictionVerifier() : m_shared(false), m_owningThread(0) {}
@@ -88,7 +89,8 @@ class ThreadRestrictionVerifier {
return;
ASSERT_UNUSED(previouslyShared, shared != previouslyShared);
- // Capture the current thread to verify that subsequent ref/deref happen on this thread.
+ // Capture the current thread to verify that subsequent ref/deref happen on
+ // this thread.
m_owningThread = currentThread();
}
« no previous file with comments | « third_party/WebKit/Source/wtf/TerminatedArray.h ('k') | third_party/WebKit/Source/wtf/ThreadSpecific.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698