mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
move thread naming to util
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
aace200899
commit
3100d4f902
12 changed files with 63 additions and 39 deletions
|
@ -6,7 +6,6 @@
|
|||
* See full license text in LICENSE file at top of project tree
|
||||
*/
|
||||
|
||||
#include <pthread.h>
|
||||
#include "Log.h"
|
||||
#include "Crypto.h"
|
||||
#include "RouterContext.h"
|
||||
|
@ -15,6 +14,7 @@
|
|||
#include "Transports.h"
|
||||
#include "Config.h"
|
||||
#include "HTTP.h"
|
||||
#include "util.h"
|
||||
|
||||
using namespace i2p::data;
|
||||
|
||||
|
@ -60,7 +60,7 @@ namespace transport
|
|||
template<typename Keys>
|
||||
void EphemeralKeysSupplier<Keys>::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "Ephemerals");
|
||||
i2p::util::SetThreadName("Ephemerals");
|
||||
|
||||
while (m_IsRunning)
|
||||
{
|
||||
|
@ -275,7 +275,7 @@ namespace transport
|
|||
|
||||
void Transports::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "Transports");
|
||||
i2p::util::SetThreadName("Transports");
|
||||
|
||||
while (m_IsRunning && m_Service)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue