diff options
author | sapier <Sapier at GMX dot net> | 2014-04-05 15:27:33 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-04-09 21:32:21 +0200 |
commit | edcad09dee6daf119f3e29b0a63837500e7b8b85 (patch) | |
tree | 892d763fd20e03d24430565a3883212ef5c1494f /src/connection.cpp | |
parent | d22621efc10859ae68f51fdcb83da422668dfc91 (diff) | |
download | hax-minetest-server-edcad09dee6daf119f3e29b0a63837500e7b8b85.tar.gz hax-minetest-server-edcad09dee6daf119f3e29b0a63837500e7b8b85.zip |
Add support for named threads (atm linux only)
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |