mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
add naming to threads
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
e2fcab34b7
commit
36473e3889
13 changed files with 38 additions and 8 deletions
|
@ -10,6 +10,7 @@
|
|||
#include "I2PEndian.h"
|
||||
#include <random>
|
||||
#include <thread>
|
||||
#include <pthread.h>
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#include "Crypto.h"
|
||||
|
@ -472,6 +473,7 @@ namespace tunnel
|
|||
|
||||
void Tunnels::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "Tunnels");
|
||||
std::this_thread::sleep_for (std::chrono::seconds(1)); // wait for other parts are ready
|
||||
|
||||
uint64_t lastTs = 0, lastPoolsTs = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue