summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-22 15:52:16 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-25 15:17:14 -0400
commit3562878e2106cf8c578f58b11115a9ed0f94b1fc (patch)
tree74bf1143491f76d7538d8daeb902ddb05efe2b56 /src/lib/eina
parentbea602f258092f109b9dc55190358909f58bddfb (diff)
eina/debug: replace some explicit pthread_t usage with Eina_Thread
no functional changes Differential Revision: https://phab.enlightenment.org/D6371
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_debug_private.h4
-rw-r--r--src/lib/eina/eina_debug_thread.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/eina/eina_debug_private.h b/src/lib/eina/eina_debug_private.h
index 448f7909c4..a635c2072d 100644
--- a/src/lib/eina/eina_debug_private.h
+++ b/src/lib/eina/eina_debug_private.h
@@ -32,7 +32,7 @@ typedef struct _Eina_Debug_Thread Eina_Debug_Thread;
32 32
33struct _Eina_Debug_Thread 33struct _Eina_Debug_Thread
34{ 34{
35 pthread_t thread; 35 Eina_Thread thread;
36 36
37 Eina_Debug_Session *cmd_session; 37 Eina_Debug_Session *cmd_session;
38 void *cmd_buffer; 38 void *cmd_buffer;
@@ -47,7 +47,7 @@ struct _Eina_Debug_Thread
47 47
48extern Eina_Spinlock _eina_debug_lock; 48extern Eina_Spinlock _eina_debug_lock;
49extern Eina_Spinlock _eina_debug_thread_lock; 49extern Eina_Spinlock _eina_debug_thread_lock;
50extern pthread_t _eina_debug_thread_mainloop; 50extern Eina_Thread _eina_debug_thread_mainloop;
51extern Eina_Debug_Thread *_eina_debug_thread_active; 51extern Eina_Debug_Thread *_eina_debug_thread_active;
52extern int _eina_debug_thread_active_num; 52extern int _eina_debug_thread_active_num;
53 53
diff --git a/src/lib/eina/eina_debug_thread.c b/src/lib/eina/eina_debug_thread.c
index d6535f56e7..ce940e76e4 100644
--- a/src/lib/eina/eina_debug_thread.c
+++ b/src/lib/eina/eina_debug_thread.c
@@ -26,7 +26,7 @@
26// like get them to stop and dump a backtrace for us 26// like get them to stop and dump a backtrace for us
27Eina_Spinlock _eina_debug_thread_lock; 27Eina_Spinlock _eina_debug_thread_lock;
28 28
29pthread_t _eina_debug_thread_mainloop = 0; 29Eina_Thread _eina_debug_thread_mainloop = 0;
30Eina_Debug_Thread *_eina_debug_thread_active = NULL; 30Eina_Debug_Thread *_eina_debug_thread_active = NULL;
31int _eina_debug_thread_active_num = 0; 31int _eina_debug_thread_active_num = 0;
32 32
@@ -39,7 +39,7 @@ static int _thread_id_counter = 1;
39void 39void
40_eina_debug_thread_add(void *th) 40_eina_debug_thread_add(void *th)
41{ 41{
42 pthread_t *pth = th; 42 Eina_Thread *pth = th;
43 // take thread tracking lock 43 // take thread tracking lock
44 eina_spinlock_take(&_eina_debug_thread_lock); 44 eina_spinlock_take(&_eina_debug_thread_lock);
45 // if we don't have enough space to store thread id's - make some more 45 // if we don't have enough space to store thread id's - make some more
@@ -74,7 +74,7 @@ _eina_debug_thread_add(void *th)
74void 74void
75_eina_debug_thread_del(void *th) 75_eina_debug_thread_del(void *th)
76{ 76{
77 pthread_t *pth = th; 77 Eina_Thread *pth = th;
78 int i; 78 int i;
79 // take a thread tracking lock 79 // take a thread tracking lock
80 eina_spinlock_take(&_eina_debug_thread_lock); 80 eina_spinlock_take(&_eina_debug_thread_lock);
@@ -99,7 +99,7 @@ _eina_debug_thread_del(void *th)
99void 99void
100_eina_debug_thread_mainloop_set(void *th) 100_eina_debug_thread_mainloop_set(void *th)
101{ 101{
102 pthread_t *pth = th; 102 Eina_Thread *pth = th;
103 _eina_debug_thread_mainloop = *pth; 103 _eina_debug_thread_mainloop = *pth;
104} 104}
105 105