mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
Kernel: Protect global device map with spinlock instead of mutx
This commit is contained in:
parent
e0d9472ced
commit
ddde9e7ee5
3 changed files with 5 additions and 6 deletions
|
@ -77,7 +77,7 @@ private:
|
|||
RefPtr<DeviceControlDevice> m_device_control_device;
|
||||
// FIXME: Once we have a singleton for managing many sound cards, remove this from here
|
||||
NonnullRefPtrVector<CharacterDevice, 1> m_audio_devices;
|
||||
MutexProtected<HashMap<u64, Device*>> m_devices;
|
||||
SpinlockProtected<HashMap<u64, Device*>> m_devices;
|
||||
|
||||
mutable Spinlock m_event_queue_lock;
|
||||
CircularQueue<DeviceEvent, 100> m_event_queue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue