mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
set useful thread names for all spawned threads
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <sys/timeb.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <system/set_threadname.h>
|
||||
|
||||
|
||||
SHTDCNT::SHTDCNT()
|
||||
@@ -68,6 +69,7 @@ SHTDCNT* SHTDCNT::getInstance()
|
||||
|
||||
void* SHTDCNT::TimeThread(void *)
|
||||
{
|
||||
set_threadname("n:shtdcnt");
|
||||
while(1)
|
||||
{
|
||||
sleep(1);
|
||||
|
Reference in New Issue
Block a user