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