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
|
@ -6,6 +6,7 @@
|
|||
* See full license text in LICENSE file at top of project tree
|
||||
*/
|
||||
|
||||
#include <pthread.h>
|
||||
#include "Log.h"
|
||||
#include "Crypto.h"
|
||||
#include "RouterContext.h"
|
||||
|
@ -59,6 +60,8 @@ namespace transport
|
|||
template<typename Keys>
|
||||
void EphemeralKeysSupplier<Keys>::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "Ephemerals");
|
||||
|
||||
while (m_IsRunning)
|
||||
{
|
||||
int num, total = 0;
|
||||
|
@ -272,6 +275,8 @@ namespace transport
|
|||
|
||||
void Transports::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "Transports");
|
||||
|
||||
while (m_IsRunning && m_Service)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue