summaryrefslogtreecommitdiffstats
path: root/base/lazy_instance.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/lazy_instance.h')
-rw-r--r--base/lazy_instance.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/lazy_instance.h b/base/lazy_instance.h
index d0cc109..d7754a7 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);
};