Standardize on just one mutex implementation.

This commit is contained in:
Unknown W. Brackets committed 2016-03-06 14:49:15 -08:00
1 parent 955b0fb9db
commit da03b80c97
8 files changed
+42 -40

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ restart:
void OnScreenMessages::Show(const std::string &text, float duration_s, uint32_t color, int icon, bool checkUnique, const char *id) {
double now = time_now_d();
std::lock_guard<std::recursive_mutex> guard(mutex_);
lock_guard guard(mutex_);
if (checkUnique) {
for (auto iter = messages_.begin(); iter != messages_.end(); ++iter) {
if (iter->text == text || (id && iter->id && !strcmp(iter->id, id))) {