Refactor in a good state
This commit is contained in:
parent
72c4740f82
commit
4ad40058f9
21 changed files with 606 additions and 105 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue