Home | History | Annotate | Download | only in base

Lines Matching defs:SpinLock

39 // SpinLock is async signal safe.
52 class LOCKABLE SpinLock {
54 SpinLock() : lockword_(kSpinLockFree) { }
56 // Special constructor for use with static SpinLock objects. E.g.,
58 // static SpinLock lock(base::LINKER_INITIALIZED);
62 // A SpinLock constructed like this can be freely used from global
65 explicit SpinLock(base::LinkerInitialized /*x*/) {
69 // Acquire this SpinLock.
80 // Try to acquire this SpinLock without blocking and return true if the
82 // returned. If this SpinLock is free at the time of the call, TryLock
94 // Release this SpinLock, which must be held by the calling thread.
130 DISALLOW_COPY_AND_ASSIGN(SpinLock);
133 // Corresponding locker object that arranges to acquire a spinlock for
137 SpinLock* lock_;
139 inline explicit SpinLockHolder(SpinLock* l) EXCLUSIVE_LOCK_FUNCTION(l)