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

Unified Diff: base/lazy_instance.h

Issue 372057: Isolate tests by running AtExit callbacks between them. (Closed)
Patch Set: fix Linux hang Created 11 years, 1 month 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/at_exit_unittest.cc ('k') | base/lazy_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/lazy_instance.h
diff --git a/base/lazy_instance.h b/base/lazy_instance.h
index d0cc109ad6a250cc4140d2d1ae0e3fe294e7c749..d7754a78a8c30c52d646fa199f9e1f45ac464c44 100644
--- a/base/lazy_instance.h
+++ b/base/lazy_instance.h
@@ -76,6 +76,10 @@ class LazyInstanceHelper {
base::subtle::Atomic32 state_;
private:
+ // Resets state of |helper| to STATE_EMPTY so that it can be reused.
+ // Not thread safe.
+ static void ResetState(void* helper);
+
DISALLOW_COPY_AND_ASSIGN(LazyInstanceHelper);
};
« no previous file with comments | « base/at_exit_unittest.cc ('k') | base/lazy_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698