summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-10 15:17:08 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-09-10 15:17:08 +0900
commit5b2baf173e7adf0ca4e68c6c168cecf9b9e9030f (patch)
treefa9e1d492ca7a4e278a348116c9c064b154b593a /src
parent350698bada808ef6456b9118efe7b6fc1b4c7bf4 (diff)
efl - set thread names for internally created threads for debugging
@feature
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/ecore_anim.c1
-rw-r--r--src/lib/ecore/ecore_thread.c2
-rw-r--r--src/lib/ecore_x/xlib/ecore_x_vsync.c1
-rw-r--r--src/lib/evas/cache/evas_preload.c1
-rw-r--r--src/lib/evas/canvas/render2/evas_render2_th_main.c1
-rw-r--r--src/lib/evas/common/evas_pipe.c3
-rw-r--r--src/lib/evas/common/evas_scale_sample.c1
-rw-r--r--src/lib/evas/common/evas_thread_render.c3
8 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c
index 908da64306..23300906e0 100644
--- a/src/lib/ecore/ecore_anim.c
+++ b/src/lib/ecore/ecore_anim.c
@@ -115,6 +115,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
115 double t0, d; 115 double t0, d;
116 int ret; 116 int ret;
117 117
118 eina_thread_name_set(eina_thread_self(), "Eanimator-timer");
118 while (!ecore_thread_check(thread)) 119 while (!ecore_thread_check(thread))
119 { 120 {
120 DBG("------- timer_event_is_busy=%i", timer_event_is_busy); 121 DBG("------- timer_event_is_busy=%i", timer_event_is_busy);
diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c
index 7266c09f43..f1aa613c73 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -417,6 +417,7 @@ _ecore_feedback_job(PH(thread))
417static void * 417static void *
418_ecore_direct_worker(Ecore_Pthread_Worker *work) 418_ecore_direct_worker(Ecore_Pthread_Worker *work)
419{ 419{
420 eina_thread_name_set(eina_thread_self(), "Ethread-feedback");
420 work->self = PHS(); 421 work->self = PHS();
421 if (work->message_run) 422 if (work->message_run)
422 work->u.message_run.func_main((void *) work->data, (Ecore_Thread *) work); 423 work->u.message_run.func_main((void *) work->data, (Ecore_Thread *) work);
@@ -439,6 +440,7 @@ restart:
439 _ecore_feedback_job(PHS()); 440 _ecore_feedback_job(PHS());
440 441
441 /* FIXME: Check if there is feedback running task todo, and switch to feedback run handler. */ 442 /* FIXME: Check if there is feedback running task todo, and switch to feedback run handler. */
443 eina_thread_name_set(eina_thread_self(), "Ethread-worker");
442 444
443 SLKL(_ecore_pending_job_threads_mutex); 445 SLKL(_ecore_pending_job_threads_mutex);
444 if (_ecore_pending_job_threads || _ecore_pending_job_threads_feedback) 446 if (_ecore_pending_job_threads || _ecore_pending_job_threads_feedback)
diff --git a/src/lib/ecore_x/xlib/ecore_x_vsync.c b/src/lib/ecore_x/xlib/ecore_x_vsync.c
index 1cc807b2bb..ea51bf59f9 100644
--- a/src/lib/ecore_x/xlib/ecore_x_vsync.c
+++ b/src/lib/ecore_x/xlib/ecore_x_vsync.c
@@ -244,6 +244,7 @@ _drm_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread)
244 void *ref; 244 void *ref;
245 int tick = 0; 245 int tick = 0;
246 246
247 eina_thread_name_set(eina_thread_self(), "Eanimator-vsync");
247 while (!ecore_thread_check(thread)) 248 while (!ecore_thread_check(thread))
248 { 249 {
249 DBG("------- drm_event_is_busy=%i", drm_event_is_busy); 250 DBG("------- drm_event_is_busy=%i", drm_event_is_busy);
diff --git a/src/lib/evas/cache/evas_preload.c b/src/lib/evas/cache/evas_preload.c
index 775871ea20..ecd3464c1f 100644
--- a/src/lib/evas/cache/evas_preload.c
+++ b/src/lib/evas/cache/evas_preload.c
@@ -70,6 +70,7 @@ _evas_preload_thread_worker(void *data, Eina_Thread thread EINA_UNUSED)
70 Evas_Preload_Pthread_Data *pth = data; 70 Evas_Preload_Pthread_Data *pth = data;
71 Evas_Preload_Pthread_Worker *work; 71 Evas_Preload_Pthread_Worker *work;
72 72
73 eina_thread_name_set(eina_thread_self(), "Eevas-preload");
73on_error: 74on_error:
74 for (;;) 75 for (;;)
75 { 76 {
diff --git a/src/lib/evas/canvas/render2/evas_render2_th_main.c b/src/lib/evas/canvas/render2/evas_render2_th_main.c
index 1379b88556..e0bcc02d8b 100644
--- a/src/lib/evas/canvas/render2/evas_render2_th_main.c
+++ b/src/lib/evas/canvas/render2/evas_render2_th_main.c
@@ -287,6 +287,7 @@ _evas_render2_th_main(void *data EINA_UNUSED, Eina_Thread thread EINA_UNUSED)
287 void *ref = NULL; 287 void *ref = NULL;
288 Msg_Main_Render *msg; 288 Msg_Main_Render *msg;
289 289
290 eina_thread_name_set(eina_thread_self(), "Eevas-render2");
290 for (;;) 291 for (;;)
291 { 292 {
292 msg = eina_thread_queue_wait(_th_main_queue, &ref); 293 msg = eina_thread_queue_wait(_th_main_queue, &ref);
diff --git a/src/lib/evas/common/evas_pipe.c b/src/lib/evas/common/evas_pipe.c
index 92d5bed5ff..d04910d01d 100644
--- a/src/lib/evas/common/evas_pipe.c
+++ b/src/lib/evas/common/evas_pipe.c
@@ -75,7 +75,8 @@ evas_common_pipe_thread(void *data, Eina_Thread t EINA_UNUSED)
75{ 75{
76 Thinfo *thinfo; 76 Thinfo *thinfo;
77 77
78// INF("TH [..........."); 78 eina_thread_name_set(eina_thread_self(), "Eecore-pipe");
79 // INF("TH [...........");
79 thinfo = data; 80 thinfo = data;
80 for (;;) 81 for (;;)
81 { 82 {
diff --git a/src/lib/evas/common/evas_scale_sample.c b/src/lib/evas/common/evas_scale_sample.c
index 0933e7f6eb..61f071f1de 100644
--- a/src/lib/evas/common/evas_scale_sample.c
+++ b/src/lib/evas/common/evas_scale_sample.c
@@ -819,6 +819,7 @@ _evas_common_scale_sample_thread(void *data EINA_UNUSED,
819 Evas_Scale_Msg *msg; 819 Evas_Scale_Msg *msg;
820 Evas_Scale_Thread *todo = NULL; 820 Evas_Scale_Thread *todo = NULL;
821 821
822 eina_thread_name_set(eina_thread_self(), "Eevas-scale-sam");
822 do 823 do
823 { 824 {
824 void *ref; 825 void *ref;
diff --git a/src/lib/evas/common/evas_thread_render.c b/src/lib/evas/common/evas_thread_render.c
index b9cf91a70c..420423ad6d 100644
--- a/src/lib/evas/common/evas_thread_render.c
+++ b/src/lib/evas/common/evas_thread_render.c
@@ -58,7 +58,8 @@ evas_thread_queue_flush(Evas_Thread_Command_Cb cb, void *data)
58static void* 58static void*
59evas_thread_worker_func(void *data EINA_UNUSED, Eina_Thread thread EINA_UNUSED) 59evas_thread_worker_func(void *data EINA_UNUSED, Eina_Thread thread EINA_UNUSED)
60{ 60{
61 while (1) 61 eina_thread_name_set(eina_thread_self(), "Eevas-thread-wk");
62 while (1)
62 { 63 {
63 Evas_Thread_Command *cmd; 64 Evas_Thread_Command *cmd;
64 unsigned int len, max; 65 unsigned int len, max;