discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3562878e2106cf8c578f58b11115a9ed0f94b1fc

commit 3562878e2106cf8c578f58b11115a9ed0f94b1fc
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jun 22 15:52:16 2018 -0400

    eina/debug: replace some explicit pthread_t usage with Eina_Thread
    
    no functional changes
    
    Differential Revision: https://phab.enlightenment.org/D6371
---
 src/lib/eina/eina_debug_private.h | 4 ++--
 src/lib/eina/eina_debug_thread.c  | 8 ++++----
 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;
 
 struct _Eina_Debug_Thread
 {
-   pthread_t thread;
+   Eina_Thread thread;
 
    Eina_Debug_Session *cmd_session;
    void *cmd_buffer;
@@ -47,7 +47,7 @@ struct _Eina_Debug_Thread
 
 extern Eina_Spinlock                _eina_debug_lock;
 extern Eina_Spinlock                _eina_debug_thread_lock;
-extern pthread_t                    _eina_debug_thread_mainloop;
+extern Eina_Thread                    _eina_debug_thread_mainloop;
 extern Eina_Debug_Thread           *_eina_debug_thread_active;
 extern int                          _eina_debug_thread_active_num;
 
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 @@
 // like get them to stop and dump a backtrace for us
 Eina_Spinlock         _eina_debug_thread_lock;
 
-pthread_t             _eina_debug_thread_mainloop = 0;
+Eina_Thread             _eina_debug_thread_mainloop = 0;
 Eina_Debug_Thread    *_eina_debug_thread_active = NULL;
 int                   _eina_debug_thread_active_num = 0;
 
@@ -39,7 +39,7 @@ static int            _thread_id_counter = 1;
 void
 _eina_debug_thread_add(void *th)
 {
-   pthread_t *pth = th;
+   Eina_Thread *pth = th;
    // take thread tracking lock
    eina_spinlock_take(&_eina_debug_thread_lock);
    // 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)
 void
 _eina_debug_thread_del(void *th)
 {
-   pthread_t *pth = th;
+   Eina_Thread *pth = th;
    int i;
    // take a thread tracking lock
    eina_spinlock_take(&_eina_debug_thread_lock);
@@ -99,7 +99,7 @@ _eina_debug_thread_del(void *th)
 void
 _eina_debug_thread_mainloop_set(void *th)
 {
-   pthread_t *pth = th;
+   Eina_Thread *pth = th;
    _eina_debug_thread_mainloop = *pth;
 }
 

-- 


Reply via email to