mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
set threadnames to unique values
Origin commit data
------------------
Branch: ni/coolstream
Commit: fca14b17c5
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-28 (Sat, 28 Feb 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -79,6 +79,7 @@
|
||||
|
||||
#include <global.h>
|
||||
#include <system/settings.h>
|
||||
#include <system/set_threadname.h>
|
||||
#include <neutrino.h>
|
||||
#include <gui/color.h>
|
||||
|
||||
@@ -2369,6 +2370,7 @@ void CRadioText::setPid(uint inPid)
|
||||
|
||||
void CRadioText::run()
|
||||
{
|
||||
set_threadname("n:radiotext");
|
||||
uint current_pid = 0;
|
||||
|
||||
printf("CRadioText::run: ###################### Starting thread ######################\n");
|
||||
|
@@ -45,6 +45,7 @@
|
||||
#include <video.h>
|
||||
#include <cs_api.h>
|
||||
#include <driver/screenshot.h>
|
||||
#include <system/set_threadname.h>
|
||||
|
||||
extern "C" {
|
||||
#include <jpeglib.h>
|
||||
@@ -106,6 +107,7 @@ bool CScreenShot::GetData()
|
||||
/* start ::run in new thread to save file in selected format */
|
||||
bool CScreenShot::Start()
|
||||
{
|
||||
set_threadname("n:screenshot");
|
||||
bool ret = false;
|
||||
if(GetData())
|
||||
ret = (start() == 0);
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user