* plugin.c (plugin_load_plugins): Warning fix.
[deliverable/binutils-gdb.git] / gold / descriptors.h
index 44c2475087efd734cbeff36a74615b5c1f69f976..8e154a631d31d1e80485fb704d0691b2f9bc6061 100644 (file)
 
 #include <vector>
 
+#include "gold-threads.h"
+
 namespace gold
 {
 
-class Lock;
-
 // This class manages file descriptors for gold.
 
 class Descriptors
@@ -78,6 +78,8 @@ class Descriptors
 
   // We need to lock before accessing any fields.
   Lock* lock_;
+  // Used to initialize the lock_ field exactly once.
+  Initialize_lock initialize_lock_;
   // Information for descriptors.
   std::vector<Open_descriptor> open_descriptors_;
   // Top of stack.
This page took 0.023631 seconds and 4 git commands to generate.