summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/irclib.cpp
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 /protocols/IRCG/src/irclib.cpp
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 'protocols/IRCG/src/irclib.cpp')
-rw-r--r--protocols/IRCG/src/irclib.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp
index a78383f4a5..8d462b3a17 100644
--- a/protocols/IRCG/src/irclib.cpp
+++ b/protocols/IRCG/src/irclib.cpp
@@ -438,6 +438,7 @@ void CIrcProto::DoReceive()
void __cdecl CIrcProto::ThreadProc(void*)
{
+ Thread_SetName("IRC: CIrcProto");
DoReceive();
m_info.Reset();
}
@@ -836,6 +837,8 @@ int CDccSession::Connect()
void __cdecl CDccSession::ConnectProc(void *pparam)
{
+ Thread_SetName("IRC: ConnectProc");
+
CDccSession* pThis = (CDccSession*)pparam;
if (!pThis->con)
pThis->SetupConnection();
@@ -1039,6 +1042,8 @@ int CDccSession::IncomingConnection(HANDLE hConnection, DWORD dwIP)
// here we decide which function to use for communicating with the remote computer, depending on connection type
void __cdecl CDccSession::ThreadProc(void *pparam)
{
+ Thread_SetName("IRC: CDccSession::ThreadProc");
+
CDccSession* pThis = (CDccSession*)pparam;
// if it is an incoming connection on a listening port, then we should close the listenting port so only one can connect (the one you offered