From edcad09dee6daf119f3e29b0a63837500e7b8b85 Mon Sep 17 00:00:00 2001 From: sapier Date: Sat, 5 Apr 2014 15:27:33 +0200 Subject: Add support for named threads (atm linux only) --- src/connection.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index 290e2cb21..c77ee7f4d 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -1227,6 +1227,8 @@ void * ConnectionSendThread::Thread() PROFILE(std::stringstream ThreadIdentifier); PROFILE(ThreadIdentifier << "ConnectionSend: [" << m_connection->getDesc() << "]"); + porting::setThreadName("ConnectionSend"); + /* if stop is requested don't stop immediately but try to send all */ /* packets first */ while(!StopRequested() || packetsQueued()) { @@ -1955,6 +1957,8 @@ void * ConnectionReceiveThread::Thread() PROFILE(std::stringstream ThreadIdentifier); PROFILE(ThreadIdentifier << "ConnectionReceive: [" << m_connection->getDesc() << "]"); + porting::setThreadName("ConnectionReceive"); + #ifdef DEBUG_CONNECTION_KBPS u32 curtime = porting::getTimeMs(); u32 lasttime = curtime; -- cgit v1.2.3