move thread naming to util

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2020-12-07 06:22:16 +03:00
parent aace200899
commit 3100d4f902
12 changed files with 63 additions and 39 deletions

View file

@ -7,7 +7,6 @@
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <pthread.h>
#include "Crypto.h"
#include "FS.h"
@ -132,7 +131,8 @@ namespace client
void I2PControlService::Run ()
{
pthread_setname_np(pthread_self(), "I2PC");
i2p::util::SetThreadName("I2PC");
while (m_IsRunning)
{
try {