From dd6ac172c4f814fa4b5ace6caca80d00d7e01ac8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 20 Feb 2020 21:23:22 +0300 Subject: bunch of useless threads replaced with a call of ProtoBroadcastAsync --- include/m_core.h | 1 + include/m_protoint.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/m_core.h b/include/m_core.h index ee75f1c1f2..3d765da7f3 100644 --- a/include/m_core.h +++ b/include/m_core.h @@ -315,6 +315,7 @@ MIR_CORE_DLL(int) mir_vsnwprintf(_Pre_notnull_ _Always_(_Post_z_) wchar_t *bu struct PROTO_INTERFACE; MIR_APP_DLL(INT_PTR) ProtoBroadcastAck(const char *szModule, MCONTACT hContact, int type, int result, HANDLE hProcess, LPARAM lParam = 0); +MIR_APP_DLL(void) ProtoBroadcastAsync(const char *szModule, MCONTACT hContact, int type, int result, HANDLE hProcess, LPARAM lParam = 0); // avatar support functions diff --git a/include/m_protoint.h b/include/m_protoint.h index a5263835f3..8eb162d807 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -91,6 +91,8 @@ public: __forceinline INT_PTR ProtoBroadcastAck(MCONTACT hContact, int type, int hResult, HANDLE hProcess, LPARAM lParam = 0) { return ::ProtoBroadcastAck(m_szModuleName, hContact, type, hResult, hProcess, lParam); } + __forceinline void ProtoBroadcastAsync(MCONTACT hContact, int type, int hResult, HANDLE hProcess, LPARAM lParam = 0) { + return ::ProtoBroadcastAsync(m_szModuleName, hContact, type, hResult, hProcess, lParam); } __forceinline INT_PTR delSetting(const char *name) { return db_unset(NULL, m_szModuleName, name); } __forceinline INT_PTR delSetting(MCONTACT hContact, const char *name) { return db_unset(hContact, m_szModuleName, name); } -- cgit v1.2.3