General: Fix clang build

Allows building on clang to work again
This commit is contained in:
Lioncash 2020-11-04 20:41:16 -05:00
parent d62d28522b
commit 6f006d051e
4 changed files with 14 additions and 7 deletions

View file

@ -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();