aboutsummaryrefslogtreecommitdiff
path: root/gold/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/errors.h')
-rw-r--r--gold/errors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/errors.h b/gold/errors.h
index 4b71e6c..a8f823d 100644
--- a/gold/errors.h
+++ b/gold/errors.h
@@ -116,6 +116,8 @@ class Errors
// This class can be accessed from multiple threads. This lock is
// used to control access to the data structures.
Lock* lock_;
+ // Used to initialize the lock_ field exactly once.
+ Initialize_lock initialize_lock_;
// Numbers of errors reported.
int error_count_;
// Number of warnings reported.