efl - set thread names for internally created threads for debugging

@feature
This commit is contained in:
Carsten Haitzler 2015-09-10 15:17:08 +09:00
parent 350698bada
commit 5b2baf173e
8 changed files with 11 additions and 2 deletions

View File

@ -115,6 +115,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
double t0, d;
int ret;
eina_thread_name_set(eina_thread_self(), "Eanimator-timer");
while (!ecore_thread_check(thread))
{
DBG("------- timer_event_is_busy=%i", timer_event_is_busy);

View File

@ -417,6 +417,7 @@ _ecore_feedback_job(PH(thread))
static void *
_ecore_direct_worker(Ecore_Pthread_Worker *work)
{
eina_thread_name_set(eina_thread_self(), "Ethread-feedback");
work->self = PHS();
if (work->message_run)
work->u.message_run.func_main((void *) work->data, (Ecore_Thread *) work);
@ -439,6 +440,7 @@ restart:
_ecore_feedback_job(PHS());
/* FIXME: Check if there is feedback running task todo, and switch to feedback run handler. */
eina_thread_name_set(eina_thread_self(), "Ethread-worker");
SLKL(_ecore_pending_job_threads_mutex);
if (_ecore_pending_job_threads || _ecore_pending_job_threads_feedback)

View File

@ -244,6 +244,7 @@ _drm_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
void *ref;
int tick = 0;
eina_thread_name_set(eina_thread_self(), "Eanimator-vsync");
while (!ecore_thread_check(thread))
{
DBG("------- drm_event_is_busy=%i", drm_event_is_busy);

View File

@ -70,6 +70,7 @@ _evas_preload_thread_worker(void *data, Eina_Thread thread EINA_UNUSED)
Evas_Preload_Pthread_Data *pth = data;
Evas_Preload_Pthread_Worker *work;
eina_thread_name_set(eina_thread_self(), "Eevas-preload");
on_error:
for (;;)
{

View File

@ -287,6 +287,7 @@ _evas_render2_th_main(void *data EINA_UNUSED, Eina_Thread thread EINA_UNUSED)
void *ref = NULL;
Msg_Main_Render *msg;
eina_thread_name_set(eina_thread_self(), "Eevas-render2");
for (;;)
{
msg = eina_thread_queue_wait(_th_main_queue, &ref);

View File

@ -75,7 +75,8 @@ evas_common_pipe_thread(void *data, Eina_Thread t EINA_UNUSED)
{
Thinfo *thinfo;
// INF("TH [...........");
eina_thread_name_set(eina_thread_self(), "Eecore-pipe");
// INF("TH [...........");
thinfo = data;
for (;;)
{

View File

@ -819,6 +819,7 @@ _evas_common_scale_sample_thread(void *data EINA_UNUSED,
Evas_Scale_Msg *msg;
Evas_Scale_Thread *todo = NULL;
eina_thread_name_set(eina_thread_self(), "Eevas-scale-sam");
do
{
void *ref;

View File

@ -58,7 +58,8 @@ evas_thread_queue_flush(Evas_Thread_Command_Cb cb, void *data)
static void*
evas_thread_worker_func(void *data EINA_UNUSED, Eina_Thread thread EINA_UNUSED)
{
while (1)
eina_thread_name_set(eina_thread_self(), "Eevas-thread-wk");
while (1)
{
Evas_Thread_Command *cmd;
unsigned int len, max;