diff options
Diffstat (limited to 'kernel/include')
| -rw-r--r-- | kernel/include/kernel/spinlock.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/kernel/include/kernel/spinlock.h b/kernel/include/kernel/spinlock.h index ed6bb86..bd255ad 100644 --- a/kernel/include/kernel/spinlock.h +++ b/kernel/include/kernel/spinlock.h @@ -23,12 +23,14 @@ typedef uint8_t spinlock_t; -namespace Spinlock +class Spinlock { +private: + spinlock_t m_lock; -void acquire(spinlock_t volatile *lock); -void release(spinlock_t volatile *lock); - -} +public: + void acquire(void); + void release(void); +}; #endif |
