mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
set threadnames to unique values
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
committed by
M. Liebmann
parent
141d198b29
commit
5307e62506
@@ -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");
|
||||
|
@@ -46,6 +46,7 @@
|
||||
#include <video.h>
|
||||
#include <cs_api.h>
|
||||
#include <driver/screenshot.h>
|
||||
#include <system/set_threadname.h>
|
||||
|
||||
extern "C" {
|
||||
#include <jpeglib.h>
|
||||
@@ -162,6 +163,7 @@ void CScreenShot::cleanupThread(void *arg)
|
||||
/* start ::run in new thread to save file in selected format */
|
||||
bool CScreenShot::Start()
|
||||
{
|
||||
set_threadname("n:screenshot");
|
||||
bool ret = false;
|
||||
if (GetData())
|
||||
ret = startThread();
|
||||
|
@@ -56,6 +56,8 @@
|
||||
#include <driver/streamts.h>
|
||||
#include <driver/record.h>
|
||||
#include <driver/genpsi.h>
|
||||
#include <system/set_threadname.h>
|
||||
|
||||
#include <gui/movieplayer.h>
|
||||
#include <cs_api.h>
|
||||
|
||||
@@ -181,6 +183,7 @@ bool CStreamInstance::Open()
|
||||
void CStreamInstance::run()
|
||||
{
|
||||
printf("CStreamInstance::run: %" PRIx64 "\n", channel_id);
|
||||
set_threadname("n:streaminstance");
|
||||
|
||||
/* pids here cannot be empty */
|
||||
stream_pids_t::iterator it = pids.begin();
|
||||
@@ -556,6 +559,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