set threadnames to unique values

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5307e62506
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-06-07 (Wed, 07 Jun 2017)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-06-07 14:17:12 +02:00
committed by Michael Liebmann
parent 1409e2b754
commit b06b9394b7
9 changed files with 24 additions and 3 deletions

View File

@@ -1428,7 +1428,8 @@ void CTimeThread::run()
{
time_t dvb_time = 0;
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
addFilters();
DMX::start();
@@ -1542,6 +1543,8 @@ int CSectionThread::Sleep()
void CSectionThread::run()
{
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
if (sections_debug)
dump_sched_info(name);
@@ -2220,6 +2223,7 @@ void CEitManager::run()
int rc;
xprintf("[sectionsd] starting\n");
set_threadname("sd:eitmanager");
printf("SIevent size: %d\n", (int)sizeof(SIevent));
/* "export NO_SLOW_ADDEVENT=true" to disable this */