summaryrefslogtreecommitdiff
path: root/protocols/Tox/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp2
-rw-r--r--protocols/Tox/src/tox_messages.cpp4
-rw-r--r--protocols/Tox/src/tox_network.cpp1
-rw-r--r--protocols/Tox/src/tox_search.cpp3
4 files changed, 10 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index 5678869b52..c834e43ad0 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -124,6 +124,8 @@ uint32_t CToxProto::GetToxFriendNumber(MCONTACT hContact)
void CToxProto::LoadFriendList(void*)
{
+ Thread_SetName("TOX: LoadFriendList");
+
size_t count = tox_self_get_friend_list_size(toxThread->Tox());
if (count > 0)
{
diff --git a/protocols/Tox/src/tox_messages.cpp b/protocols/Tox/src/tox_messages.cpp
index a44c1084de..c2c409c3e2 100644
--- a/protocols/Tox/src/tox_messages.cpp
+++ b/protocols/Tox/src/tox_messages.cpp
@@ -42,6 +42,8 @@ struct SendMessageParam
void CToxProto::SendMessageAsync(void *arg)
{
+ Thread_SetName("TOX: SendMessageAsync");
+
SendMessageParam *param = (SendMessageParam*)arg;
int32_t friendNumber = GetToxFriendNumber(param->hContact);
@@ -129,6 +131,8 @@ int CToxProto::OnPreCreateMessage(WPARAM, LPARAM lParam)
/* STATUS MESSAGE */
void CToxProto::GetStatusMessageAsync(void* arg)
{
+ Thread_SetName("TOX: GetStatusMessageAsync");
+
MCONTACT hContact = (UINT_PTR)arg;
int32_t friendNumber = GetToxFriendNumber(hContact);
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp
index bf5e54ccc2..4f68ad3c50 100644
--- a/protocols/Tox/src/tox_network.cpp
+++ b/protocols/Tox/src/tox_network.cpp
@@ -249,6 +249,7 @@ void CToxProto::CheckConnection(int &retriesCount)
void CToxProto::PollingThread(void*)
{
debugLogA(__FUNCTION__": entering");
+ Thread_SetName("TOX: PollingThread");
Tox_Options *options = GetToxOptions();
if (!options)
diff --git a/protocols/Tox/src/tox_search.cpp b/protocols/Tox/src/tox_search.cpp
index df15a4ab78..6c99ad123c 100644
--- a/protocols/Tox/src/tox_search.cpp
+++ b/protocols/Tox/src/tox_search.cpp
@@ -59,6 +59,8 @@ ToxHexAddress ResolveToxAddressFromDns(const char *dnsQuery)
void CToxProto::SearchByNameAsync(void *arg)
{
+ Thread_SetName("TOX: SearchByNameAsync");
+
char *query = (char*)arg;
char *name = strtok(query, "@");
char *domain = strtok(NULL, "");
@@ -145,6 +147,7 @@ void CToxProto::SearchByNameAsync(void *arg)
void CToxProto::SearchFailedAsync(void*)
{
+ Thread_SetName("TOX: SearchFailedAsync");
ProtoBroadcastAck(NULL, ACKTYPE_SEARCH, ACKRESULT_FAILED, (HWND)1, 0);
}