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

Unified Diff: base/threading/thread_unittest.cc

Issue 8060011: Suppress benign race in ThreadTest.SleepInsideInit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/thread_unittest.cc
diff --git a/base/threading/thread_unittest.cc b/base/threading/thread_unittest.cc
index c7cb76abec6eb8e9af6e47888f93794edf10eb49..0499e073bf310b22d990426178c5eb1c06d0b63a 100644
--- a/base/threading/thread_unittest.cc
+++ b/base/threading/thread_unittest.cc
@@ -43,7 +43,10 @@ class SleepSome : public Task {
class SleepInsideInitThread : public Thread {
public:
- SleepInsideInitThread() : Thread("none") { init_called_ = false; }
+ SleepInsideInitThread() : Thread("none") {
+ init_called_ = false;
+ ANNOTATE_BENIGN_RACE(this, "http://crbug.com/98219");
+ }
virtual ~SleepInsideInitThread() { }
virtual void Init() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698