Make the last commit slightly safer by adding a mutex
This commit is contained in:
parent
0926cabb00
commit
f77ba7ba3a
2 changed files with 11 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include <vector>
|
||||
#include "base/functional.h"
|
||||
#include "base/mutex.h"
|
||||
#include "ui/view.h"
|
||||
#include "ui/ui_screen.h"
|
||||
|
||||
|
@ -80,4 +81,6 @@ protected:
|
|||
|
||||
UI::TextView *lastKeyEvent_;
|
||||
UI::TextView *lastLastKeyEvent_;
|
||||
|
||||
recursive_mutex eventLock_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue