diff options
Diffstat (limited to 'libs/kstd/src/mutex.cpp')
| -rw-r--r-- | libs/kstd/src/mutex.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/kstd/src/mutex.cpp b/libs/kstd/src/mutex.cpp index cabf833..d66cb98 100644 --- a/libs/kstd/src/mutex.cpp +++ b/libs/kstd/src/mutex.cpp @@ -7,10 +7,8 @@ namespace kstd { - [[gnu::section(".stl_text")]] mutex::mutex() = default; - [[gnu::section(".stl_text")]] mutex::~mutex() { if (m_locked.test(std::memory_order_relaxed)) @@ -19,7 +17,6 @@ namespace kstd } } - [[gnu::section(".stl_text")]] auto mutex::lock() -> void { while (!try_lock()) @@ -28,13 +25,11 @@ namespace kstd } } - [[gnu::section(".stl_text")]] auto mutex::try_lock() -> bool { return !m_locked.test_and_set(std::memory_order_acquire); } - [[gnu::section(".stl_text")]] auto mutex::unlock() -> void { m_locked.clear(std::memory_order_release); |
