Make the last commit slightly safer by adding a mutex

This commit is contained in:
Henrik Rydgard 2016-09-11 18:59:06 +02:00
parent 0926cabb00
commit f77ba7ba3a
2 changed files with 11 additions and 0 deletions

View file

@ -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_;
};