20 #ifndef GALOIS_SUBSTRATE_PADDEDLOCK_H
21 #define GALOIS_SUBSTRATE_PADDEDLOCK_H
31 template <
bool concurrent>
39 void lock()
const { Lock.get().lock(); }
40 bool try_lock()
const {
return Lock.get().try_lock(); }
41 void unlock()
const { Lock.get().unlock(); }
bool try_lock() const
Definition: PaddedLock.h:40
void unlock() const
Definition: PaddedLock.h:49
void lock() const
Definition: PaddedLock.h:39
Definition: CacheLineStorage.h:32
void unlock() const
Definition: PaddedLock.h:41
bool try_lock() const
Definition: PaddedLock.h:48
PaddedLock is a spinlock.
Definition: PaddedLock.h:32
void lock() const
Definition: PaddedLock.h:47