blob: 527ff0f9fed0ab0a56638a15c854b8171eaef9b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2021 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "core/hle/kernel/k_spin_lock.h"
namespace Kernel {
void KSpinLock::Lock() {
lck.lock();
}
void KSpinLock::Unlock() {
lck.unlock();
}
bool KSpinLock::TryLock() {
return lck.try_lock();
}
} // namespace Kernel
|