summaryrefslogtreecommitdiff
path: root/src/lib/evas
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/lib/evas
parent350698bada808ef6456b9118efe7b6fc1b4c7bf4 (diff)
efl - set thread names for internally created threads for debugging
@feature
Diffstat (limited to 'src/lib/evas')
-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
5 files changed, 7 insertions, 2 deletions
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;