mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 04:07:49 +02:00
move thread naming to util
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
aace200899
commit
3100d4f902
12 changed files with 63 additions and 39 deletions
|
@ -7,12 +7,12 @@
|
|||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <pthread.h>
|
||||
#include "Log.h"
|
||||
#include "Timestamp.h"
|
||||
#include "RouterContext.h"
|
||||
#include "NetDb.hpp"
|
||||
#include "SSU.h"
|
||||
#include "util.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <boost/winapi/error_codes.hpp>
|
||||
|
@ -143,7 +143,7 @@ namespace transport
|
|||
|
||||
void SSUServer::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "SSU");
|
||||
i2p::util::SetThreadName("SSU");
|
||||
|
||||
while (m_IsRunning)
|
||||
{
|
||||
|
@ -160,7 +160,7 @@ namespace transport
|
|||
|
||||
void SSUServer::RunReceivers ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "SSUv4");
|
||||
i2p::util::SetThreadName("SSUv4");
|
||||
|
||||
while (m_IsRunning)
|
||||
{
|
||||
|
@ -184,7 +184,7 @@ namespace transport
|
|||
|
||||
void SSUServer::RunReceiversV6 ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "SSUv6");
|
||||
i2p::util::SetThreadName("SSUv6");
|
||||
|
||||
while (m_IsRunning)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue