mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
Destinations: set thread name from tunnel name
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user