libeplayer3/container_ass: set thread name

This commit is contained in:
martii
2013-07-28 11:40:42 +02:00
parent aa43e83a7c
commit 3404980bc9

View File

@@ -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");