From 11bd60b4f1e1bf91c801c152e1638f647660a7d2 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Wed, 28 Mar 2018 09:47:45 +0200 Subject: [PATCH] Cleanup --- kernel/include/conc/semaphore.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/include/conc/semaphore.hpp b/kernel/include/conc/semaphore.hpp index 0c8ecfc0..0a7c5a24 100644 --- a/kernel/include/conc/semaphore.hpp +++ b/kernel/include/conc/semaphore.hpp @@ -113,9 +113,9 @@ struct semaphore { } private: - mutable spinlock value_lock; ///< The spin lock protecting the counter - volatile size_t value; ///< The value of the counter - wait_list queue; ///< The sleep queue + spinlock value_lock; ///< The spin lock protecting the counter + volatile size_t value; ///< The value of the counter + wait_list queue; ///< The sleep queue }; #endif