diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2026-04-08 15:50:48 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2026-04-08 15:50:48 +0200 |
| commit | 0e92017837490d3ce806cf511977ada06d11a2a7 (patch) | |
| tree | 72943a5de6cf20a186c56e213a41d07914618175 /kapi/include | |
| parent | 2ed34cc51a534171f0fe08808634834bc22cf84d (diff) | |
| download | teachos-0e92017837490d3ce806cf511977ada06d11a2a7.tar.xz teachos-0e92017837490d3ce806cf511977ada06d11a2a7.zip | |
kapi/bus: fix eager initialization
Diffstat (limited to 'kapi/include')
| -rw-r--r-- | kapi/include/kapi/devices/bus.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kapi/include/kapi/devices/bus.hpp b/kapi/include/kapi/devices/bus.hpp index 7b2d41f..60134ff 100644 --- a/kapi/include/kapi/devices/bus.hpp +++ b/kapi/include/kapi/devices/bus.hpp @@ -52,6 +52,7 @@ namespace kapi::devices private: kstd::vector<kstd::unique_ptr<device>> m_devices; kstd::vector<kstd::observer_ptr<device>> m_observers; + std::atomic_flag m_init_was_called{}; std::atomic_flag m_initialized{}; }; |
