mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 04:37:50 +02:00
Destinations: set thread name from tunnel name
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
7285caa4f1
commit
574d12298b
3 changed files with 48 additions and 31 deletions
|
@ -137,8 +137,8 @@ namespace util
|
|||
std::lock_guard<std::mutex> l(m_Mutex);
|
||||
for (size_t i = 0; i < num; i++)
|
||||
this->Release (arr[i]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
template<template<typename, typename...>class C, typename... R>
|
||||
void ReleaseMt(const C<T *, R...>& c)
|
||||
{
|
||||
|
@ -146,7 +146,7 @@ namespace util
|
|||
for (auto& it: c)
|
||||
this->Release (it);
|
||||
}
|
||||
|
||||
|
||||
template<typename... TArgs>
|
||||
std::shared_ptr<T> AcquireSharedMt (TArgs&&... args)
|
||||
{
|
||||
|
@ -183,6 +183,8 @@ namespace util
|
|||
void StartIOService ();
|
||||
void StopIOService ();
|
||||
|
||||
void SetName (std::string_view name) { m_Name = name; };
|
||||
|
||||
private:
|
||||
|
||||
void Run ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue