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
|
@ -9,6 +9,7 @@
|
|||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
#include <pthread.h>
|
||||
#include <memory>
|
||||
|
||||
#include <boost/asio.hpp>
|
||||
|
@ -1312,6 +1313,7 @@ namespace http {
|
|||
|
||||
void HTTPServer::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "Webconsole");
|
||||
while (m_IsRunning)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
#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"
|
||||
|
@ -131,6 +132,7 @@ namespace client
|
|||
|
||||
void I2PControlService::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "I2PC");
|
||||
while (m_IsRunning)
|
||||
{
|
||||
try {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifdef USE_UPNP
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <pthread.h>
|
||||
|
||||
#include <boost/thread/thread.hpp>
|
||||
#include <boost/asio.hpp>
|
||||
|
@ -60,6 +61,7 @@ namespace transport
|
|||
|
||||
void UPnP::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "UPnP");
|
||||
while (m_IsRunning)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue