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

Unified Diff: base/lock.h

Issue 42402: Test was examining a variable without first acquiring a required Lock.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « base/condition_variable_unittest.cc ('k') | base/lock_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/lock.h
===================================================================
--- base/lock.h (revision 12119)
+++ base/lock.h (working copy)
@@ -23,7 +23,7 @@
// calling thread. If the lock has not been acquired, then the method
// will DCHECK(). In non-debug builds, the LockImpl's implementation of
// AssertAcquired() is an empty inline method.
- void AssertAcquired() { return lock_.AssertAcquired(); }
+ void AssertAcquired() const { return lock_.AssertAcquired(); }
// Return the underlying lock implementation.
// TODO(awalker): refactor lock and condition variables so that this is
« no previous file with comments | « base/condition_variable_unittest.cc ('k') | base/lock_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698