add naming to threads

Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
R4SAS 2020-12-04 18:36:49 +03:00
parent e2fcab34b7
commit 36473e3889
13 changed files with 38 additions and 8 deletions

View file

@ -14,6 +14,7 @@
#include <future>
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp>
#include <pthread.h>
#include "Config.h"
#include "Log.h"
#include "I2PEndian.h"
@ -148,6 +149,7 @@ namespace util
void NTPTimeSync::Run ()
{
pthread_setname_np(pthread_self(), "Timesync");
while (m_IsRunning)
{
try