diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-04 21:02:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-04 21:02:56 +0300 |
commit | 1b89cbba1f3bc00ea24a8414b2e670c582ac5fc4 (patch) | |
tree | 76ac43351cbbdbece75774d6f7bbf1e89b6cdca8 /protocols/FacebookRM/src/process.cpp | |
parent | 5b32a855e518f67589fd49837795a605a19badce (diff) |
Facebook: switch to mir_cs instead of custom lock
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index cfbcdeec99..0aa29b9639 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -326,7 +326,7 @@ void FacebookProto::LoadHistory(void *pParam) MCONTACT hContact = *(MCONTACT*)pParam; delete (MCONTACT*)pParam; - ScopedLock s(facy.loading_history_lock_); + mir_cslock s(facy.loading_history_lock_); // Allow loading history only from one contact at a time if (!isOnline() || facy.loading_history) @@ -951,7 +951,7 @@ void FacebookProto::ProcessMessages(void* data) void FacebookProto::ShowNotifications() { - ScopedLock s(facy.notifications_lock_); + mir_cslock s(facy.notifications_lock_); // Show popups for unseen notifications and/or write them to chatroom for (auto &it : facy.notifications) { |