mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
libeplayer3/container_ass: set thread name
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include <errno.h>
|
||||
#include <sys/poll.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/prctl.h>
|
||||
|
||||
#include <ass/ass.h>
|
||||
|
||||
@@ -315,6 +316,10 @@ void storeRegion(unsigned int x, unsigned int y, unsigned int w, unsigned int h,
|
||||
/* **************************** */
|
||||
|
||||
static void ASSThread(Context_t *context) {
|
||||
char threadname[17];
|
||||
strncpy(threadname, __func__, sizeof(threadname));
|
||||
threadname[16] = 0;
|
||||
prctl (PR_SET_NAME, (unsigned long)&threadname);
|
||||
Writer_t* writer;
|
||||
|
||||
ass_printf(10, "\n");
|
||||
|
Reference in New Issue
Block a user