mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
WindowServer: Move the CPU usage graph updates to a secondary thread.
This avoids blocking the main thread on filesystem access, which created noticeable stutters during compilation.
This commit is contained in:
parent
a2fe5f8517
commit
56f7b392c1
2 changed files with 28 additions and 13 deletions
|
@ -70,6 +70,8 @@ public:
|
|||
ConstIterator begin() const { return ConstIterator(*this, m_head); }
|
||||
ConstIterator end() const { return ConstIterator(*this, size()); }
|
||||
|
||||
int head_index() const { return m_head; }
|
||||
|
||||
private:
|
||||
friend class ConstIterator;
|
||||
T m_elements[Capacity];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue