Refactor in a good state

This commit is contained in:
IlyaShurupov 2024-10-09 14:31:23 +03:00
parent 72c4740f82
commit 4ad40058f9
21 changed files with 606 additions and 105 deletions

View file

@ -44,6 +44,9 @@ bool transitionsReduce[4][4] = {
void EventHandler::processAllEvent() {
mMutex.lock();
mPointerPrev = mPointer;
while (mEventQueue.size()) {
processEventUnguarded();
}
@ -53,6 +56,8 @@ void EventHandler::processAllEvent() {
void EventHandler::processEvent() {
mMutex.lock();
mPointerPrev = mPointer;
if (!mEventQueue.size()) {
mMutex.unlock();
return;