diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 08:34:13 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-03-16 08:34:13 +0100 |
| commit | 64bf7fcf58ced023be1701ed4508e38f746d40b8 (patch) | |
| tree | 023637c060d169e5a72576f62c9bd616b8b5b937 /libs | |
| parent | 1e23bfc850f0ca126bff3c56c86419ab1570c96e (diff) | |
| download | teachos-64bf7fcf58ced023be1701ed4508e38f746d40b8.tar.xz teachos-64bf7fcf58ced023be1701ed4508e38f746d40b8.zip | |
kernel/memory: implement basic free-list heap
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/kstd/include/kstd/mutex | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libs/kstd/include/kstd/mutex b/libs/kstd/include/kstd/mutex index 7795558..b2a31aa 100644 --- a/libs/kstd/include/kstd/mutex +++ b/libs/kstd/include/kstd/mutex @@ -66,7 +66,6 @@ namespace kstd //! //! @note This function will block until the mutex was successfully locked. //! @param mutex The mutex to lock. - [[gnu::section(".stl_text")]] lock_guard(MutexType & mutex) noexcept : m_mutex(mutex) { @@ -77,13 +76,11 @@ namespace kstd //! //! @note The behavior is undefined if the mutex is not owned by the current thread. //! @param mutex The mutex to take ownership of. - [[gnu::section(".stl_text")]] lock_guard(MutexType & mutex, adopt_lock_t) noexcept : m_mutex(mutex) {} //! Destroy this lock_guard and release the owned mutex. - [[gnu::section(".stl_text")]] ~lock_guard() { m_mutex.unlock(); |
