mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
Rename SpinLock to Lock. It hasn't been a SpinLock for some time.
I'm pretty happy with the mechanism of AK::Lock for now.
This commit is contained in:
parent
133f9aa352
commit
e9e57c5f65
9 changed files with 18 additions and 27 deletions
|
@ -30,5 +30,5 @@ private:
|
|||
Vector<byte> m_buffer2;
|
||||
size_t m_read_buffer_index { 0 };
|
||||
bool m_empty { true };
|
||||
SpinLock m_lock;
|
||||
Lock m_lock;
|
||||
};
|
||||
|
|
|
@ -37,7 +37,7 @@ private:
|
|||
bool read_sectors(dword start_sector, word count, byte* buffer);
|
||||
bool write_sectors(dword start_sector, word count, const byte* data);
|
||||
|
||||
SpinLock m_lock;
|
||||
Lock m_lock;
|
||||
word m_cylinders { 0 };
|
||||
word m_heads { 0 };
|
||||
word m_sectors_per_track { 0 };
|
||||
|
|
|
@ -19,6 +19,6 @@ public:
|
|||
virtual bool can_write(Process&) const override { return true; }
|
||||
|
||||
private:
|
||||
SpinLock m_lock;
|
||||
Lock m_lock;
|
||||
Vector<RetainPtr<MasterPTY>> m_freelist;
|
||||
};
|
||||
|
|
|
@ -254,7 +254,7 @@ public:
|
|||
bool is_root() const { return m_euid == 0; }
|
||||
|
||||
Vector<GUI_Event>& gui_events() { return m_gui_events; }
|
||||
SpinLock& gui_events_lock() { return m_gui_events_lock; }
|
||||
Lock& gui_events_lock() { return m_gui_events_lock; }
|
||||
|
||||
bool wakeup_requested() { return m_wakeup_requested; }
|
||||
void request_wakeup() { m_wakeup_requested = true; }
|
||||
|
@ -358,7 +358,7 @@ private:
|
|||
HashMap<int, OwnPtr<WSWindow>> m_windows;
|
||||
|
||||
Vector<GUI_Event> m_gui_events;
|
||||
SpinLock m_gui_events_lock;
|
||||
Lock m_gui_events_lock;
|
||||
int m_next_window_id { 1 };
|
||||
|
||||
dword m_wakeup_requested { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue