diff options
| author | 2020-06-27 18:20:06 -0400 | |
|---|---|---|
| committer | 2020-06-27 18:20:06 -0400 | |
| commit | 2f8947583f2f0af4058600243d6c1d244e3c4890 (patch) | |
| tree | a0e7a10c6131efb23d6fdb3ee7fc0de4bd4163af /src/common/spin_lock.h | |
| parent | NvFlinger: Clang Format. (diff) | |
| download | yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.gz yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.xz yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.zip | |
Core/Common: Address Feedback.
Diffstat (limited to 'src/common/spin_lock.h')
| -rw-r--r-- | src/common/spin_lock.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/spin_lock.h b/src/common/spin_lock.h index 70282a961..1df5528c4 100644 --- a/src/common/spin_lock.h +++ b/src/common/spin_lock.h | |||
| @@ -8,6 +8,11 @@ | |||
| 8 | 8 | ||
| 9 | namespace Common { | 9 | namespace Common { |
| 10 | 10 | ||
| 11 | /** | ||
| 12 | * SpinLock class | ||
| 13 | * a lock similar to mutex that forces a thread to spin wait instead calling the | ||
| 14 | * supervisor. Should be used on short sequences of code. | ||
| 15 | */ | ||
| 11 | class SpinLock { | 16 | class SpinLock { |
| 12 | public: | 17 | public: |
| 13 | void lock(); | 18 | void lock(); |