mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +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
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
#include "Log.h"
|
||||
#include <pthread.h>
|
||||
#include "util.h"
|
||||
|
||||
//for std::transform
|
||||
#include <algorithm>
|
||||
|
@ -180,7 +180,8 @@ namespace log {
|
|||
|
||||
void Log::Run ()
|
||||
{
|
||||
pthread_setname_np(pthread_self(), "Logging");
|
||||
i2p::util::SetThreadName("Logging");
|
||||
|
||||
Reopen ();
|
||||
while (m_IsRunning)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue