Home | History | Annotate | Download | only in gold

Lines Matching defs:Lock

28 // Lock
29 // A simple lock class.
41 // The interface for the implementation of a Lock.
60 // A simple lock class.
62 class Lock
65 Lock();
67 ~Lock();
69 // Acquire the lock.
74 // Release the lock.
81 Lock(const Lock&);
82 Lock& operator=(const Lock&);
92 // RAII for Lock.
97 Hold_lock(Lock& lock)
98 : lock_(lock)
109 Lock& lock_;
115 Hold_optional_lock(Lock* lock)
116 : lock_(lock)
132 Lock* lock_;
158 // specific lock.
163 Condvar(Lock& lock);
167 // only be called when the lock is held.
174 // when the lock is held.
180 // the condition variable. This should only be called when the lock
191 Lock& lock_;
227 // Internal compare-and-swap lock on was_run_;
230 // The lock to run the function only once.
234 // A class used to initialize a lock exactly once, after the options
238 // get by without using a lock. This class should be an instance
239 // variable of the class which has a lock which needs to be
245 // The class which uses this will have a pointer to a lock. This
247 Initialize_lock(Lock** pplock)
251 // Initialize the lock. Return true if the lock is now initialized,
261 // A pointer to the lock pointer which must be initialized.
262 Lock** const pplock_;