fix: improve scheduling, memory, timer implementations

This commit is contained in:
2026-03-24 07:40:37 +01:00
parent 195028d994
commit f902ab48a1
14 changed files with 239 additions and 94 deletions
+14 -3
View File
@@ -181,20 +181,31 @@ namespace Drivers::PS2::Mouse {
}
int32_t GetX() {
return g_State.X;
g_StateLock.Acquire();
int32_t x = g_State.X;
g_StateLock.Release();
return x;
}
int32_t GetY() {
return g_State.Y;
g_StateLock.Acquire();
int32_t y = g_State.Y;
g_StateLock.Release();
return y;
}
uint8_t GetButtons() {
return g_State.Buttons;
g_StateLock.Acquire();
uint8_t b = g_State.Buttons;
g_StateLock.Release();
return b;
}
void SetBounds(int32_t maxX, int32_t maxY) {
g_StateLock.Acquire();
g_MaxX = maxX;
g_MaxY = maxY;
g_StateLock.Release();
}
void FlushState() {