GeckoCode: Cleanup

The active codes vector cannot safely be used outside the mutex,
move the lock out into RunCodeHandler. s_code_handler_installed was
also racing against SetActiveCodes since it's being written both
inside and outside the lock.

General cleanup. Add s_ prefixes, use constexpr, remove C casts.
This commit is contained in:
EmptyChaos
2016-09-23 13:20:28 +00:00
parent cf8ac5c09c
commit e91c0222b4
2 changed files with 61 additions and 70 deletions

View File

@ -34,7 +34,6 @@ public:
};
void SetActiveCodes(const std::vector<GeckoCode>& gcodes);
bool RunActiveCodes();
void RunCodeHandler();
} // namespace Gecko