summaryrefslogtreecommitdiff
path: root/plugins/AVS
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2016-06-11 23:45:23 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2016-06-11 23:45:23 +0000
commit3e4284bb32b1515cdcac6741d2c2e94f64f08063 (patch)
tree15602d9e534406646b4b10c889809e10ff07ef30 /plugins/AVS
parentf36117c31cd21ba5442be8fd1d7234b1e71380b2 (diff)
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
Diffstat (limited to 'plugins/AVS')
-rw-r--r--plugins/AVS/src/cache.cpp2
-rw-r--r--plugins/AVS/src/poll.cpp2
-rw-r--r--plugins/AVS/src/services.cpp2
3 files changed, 6 insertions, 0 deletions
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);