diff options
author | bunnei <bunneidev@gmail.com> | 2020-06-28 12:37:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-28 12:37:50 -0400 |
commit | b05795d704e0c194215f815a5703db09e524b59a (patch) | |
tree | ecf4023b4ee0c91555c1d8263762fcb9dcb04a17 /src/common/spin_lock.h | |
parent | 8596a127724e9d7e27c4d7d9becd323c8d6d4f8e (diff) | |
parent | 2f8947583f2f0af4058600243d6c1d244e3c4890 (diff) |
Merge pull request #3955 from FernandoS27/prometheus-2b
Remake Kernel Scheduling, CPU Management & Boot Management (Prometheus)
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 @@ namespace Common { +/** + * SpinLock class + * a lock similar to mutex that forces a thread to spin wait instead calling the + * supervisor. Should be used on short sequences of code. + */ class SpinLock { public: void lock(); |