General: Fix clang build
Allows building on clang to work again
This commit is contained in:
parent
d62d28522b
commit
6f006d051e
4 changed files with 14 additions and 7 deletions
|
@ -15,6 +15,14 @@ namespace Common {
|
|||
*/
|
||||
class SpinLock {
|
||||
public:
|
||||
SpinLock() = default;
|
||||
|
||||
SpinLock(const SpinLock&) = delete;
|
||||
SpinLock& operator=(const SpinLock&) = delete;
|
||||
|
||||
SpinLock(SpinLock&&) = delete;
|
||||
SpinLock& operator=(SpinLock&&) = delete;
|
||||
|
||||
void lock();
|
||||
void unlock();
|
||||
[[nodiscard]] bool try_lock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue