libeplayer3/container_ass: set thread name

Origin commit data
------------------
Branch: master
Commit: 3404980bc9
Author: martii <m4rtii@gmx.de>
Date: 2013-07-28 (Sun, 28 Jul 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2013-07-28 11:40:42 +02:00
parent dd25893694
commit 3c1e37e836

View File

@@ -39,6 +39,7 @@
#include <errno.h> #include <errno.h>
#include <sys/poll.h> #include <sys/poll.h>
#include <pthread.h> #include <pthread.h>
#include <sys/prctl.h>
#include <ass/ass.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) { 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; Writer_t* writer;
ass_printf(10, "\n"); ass_printf(10, "\n");