1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +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:
Andreas Kling 2019-01-17 16:25:02 +01:00
parent 133f9aa352
commit e9e57c5f65
9 changed files with 18 additions and 27 deletions

View file

@ -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 };