mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 13:36:24 +02:00
Standardize on just one mutex implementation.
This commit is contained in:
1 parent
955b0fb9db
commit
da03b80c97
8 files changed
+42
-40
No files matched your search
@@ -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))) {
|
||||
|
||||
Reference in new issue
Block a user