From 3e4284bb32b1515cdcac6741d2c2e94f64f08063 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sat, 11 Jun 2016 23:45:23 +0000 Subject: MRA: change avatars load threads count default value from 4 to 1 add threads names git-svn-id: http://svn.miranda-ng.org/main/trunk@16948 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/cache.cpp | 2 ++ plugins/AVS/src/poll.cpp | 2 ++ plugins/AVS/src/services.cpp | 2 ++ 3 files changed, 6 insertions(+) (limited to 'plugins/AVS/src') diff --git a/plugins/AVS/src/cache.cpp b/plugins/AVS/src/cache.cpp index 01e3c65a23..57f78e88a3 100644 --- a/plugins/AVS/src/cache.cpp +++ b/plugins/AVS/src/cache.cpp @@ -213,6 +213,8 @@ int SetAvatarAttribute(MCONTACT hContact, DWORD attrib, int mode) void PicLoader(LPVOID) { + Thread_SetName("AVS: PicLoader"); + DWORD dwDelay = db_get_dw(NULL, AVS_MODULE, "picloader_sleeptime", 80); if (dwDelay < 30) diff --git a/plugins/AVS/src/poll.cpp b/plugins/AVS/src/poll.cpp index 38d09b75e6..a713a71935 100644 --- a/plugins/AVS/src/poll.cpp +++ b/plugins/AVS/src/poll.cpp @@ -208,6 +208,8 @@ int FetchAvatarFor(MCONTACT hContact, char *szProto) static void RequestThread(void *) { + Thread_SetName("AVS: RequestThread"); + while (!g_shutDown) { mir_cslockfull lck(cs); diff --git a/plugins/AVS/src/services.cpp b/plugins/AVS/src/services.cpp index 3be64cf8df..50f6134e31 100644 --- a/plugins/AVS/src/services.cpp +++ b/plugins/AVS/src/services.cpp @@ -799,6 +799,8 @@ INT_PTR GetMyAvatar(WPARAM wParam, LPARAM lParam) static void ReloadMyAvatar(LPVOID lpParam) { + Thread_SetName("AVS: ReloadMyAvatar"); + char *szProto = (char *)lpParam; mir_sleep(500); -- cgit v1.2.3