set threadnames to unique values

Origin commit data
------------------
Commit: fca14b17c5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-28 (Sat, 28 Feb 2015)
This commit is contained in:
Stefan Seyfried
2015-02-28 10:53:18 +01:00
parent f2f55b70e7
commit 4c9e098a4f
9 changed files with 24 additions and 3 deletions

View File

@@ -56,6 +56,7 @@
#include <driver/streamts.h>
#include <driver/record.h>
#include <driver/genpsi.h>
#include <system/set_threadname.h>
/* experimental mode:
* stream not possible, if record running
@@ -163,6 +164,7 @@ void CStreamInstance::RemoveClient(int clientfd)
void CStreamInstance::run()
{
printf("CStreamInstance::run: %" PRIx64 "\n", channel_id);
set_threadname("n:streaminstance");
CZapitChannel * tmpchan = CServiceManager::getInstance()->FindChannel(channel_id);
if (!tmpchan)
@@ -539,6 +541,7 @@ void CStreamManager::run()
int poll_timeout = -1;
printf("Starting STREAM thread keeper, tid %ld\n", syscall(__NR_gettid));
set_threadname("n:streammanager");
while (running) {
mutex.lock();