diff options
Diffstat (limited to 'src/common/spin_lock.h')
| -rw-r--r-- | src/common/spin_lock.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/spin_lock.h b/src/common/spin_lock.h index 4f946a258..06ac2f5bb 100644 --- a/src/common/spin_lock.h +++ b/src/common/spin_lock.h | |||
| @@ -15,6 +15,14 @@ namespace Common { | |||
| 15 | */ | 15 | */ |
| 16 | class SpinLock { | 16 | class SpinLock { |
| 17 | public: | 17 | public: |
| 18 | SpinLock() = default; | ||
| 19 | |||
| 20 | SpinLock(const SpinLock&) = delete; | ||
| 21 | SpinLock& operator=(const SpinLock&) = delete; | ||
| 22 | |||
| 23 | SpinLock(SpinLock&&) = delete; | ||
| 24 | SpinLock& operator=(SpinLock&&) = delete; | ||
| 25 | |||
| 18 | void lock(); | 26 | void lock(); |
| 19 | void unlock(); | 27 | void unlock(); |
| 20 | [[nodiscard]] bool try_lock(); | 28 | [[nodiscard]] bool try_lock(); |