cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=802f414b257aa0203d47abe2d01c788ae276cd91

commit 802f414b257aa0203d47abe2d01c788ae276cd91
Author: Woochanlee <wc0917....@samsung.com>
Date:   Mon Sep 23 06:17:45 2019 +0000

    ecore_thread: Fix arguments to match with the function call.
    
    see the _eina_thread_internal() function
    
    r = c->func((void*) c->data, eina_thread_self());
    
    The second param has been missed in ecore_thread_worker, 
ecore_direct_worker functions.
    
    Reviewed-by: Cedric BAIL <cedric.b...@free.fr>
    Differential Revision: https://phab.enlightenment.org/D10073
---
 src/lib/ecore/ecore_thread.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c
index a2c6489d3f..05ab26cdea 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -164,7 +164,7 @@ static Eina_Bool have_main_loop_thread = 0;
 static Eina_Trash *_ecore_thread_worker_trash = NULL;
 static int _ecore_thread_worker_count = 0;
 
-static void                 *_ecore_thread_worker(void *);
+static void                 *_ecore_thread_worker(void *, Eina_Thread);
 static Ecore_Pthread_Worker *_ecore_thread_worker_new(void);
 
 static PH(get_main_loop_thread) (void)
@@ -468,8 +468,9 @@ _ecore_direct_worker_cleanup(void *data)
 }
 
 static void *
-_ecore_direct_worker(Ecore_Pthread_Worker *work)
+_ecore_direct_worker(void *data, Eina_Thread t EINA_UNUSED)
 {
+   Ecore_Pthread_Worker *work = data;
    eina_thread_cancellable_set(EINA_FALSE, NULL);
    eina_thread_name_set(eina_thread_self(), "Ethread-feedback");
    work->self = PHS();
@@ -497,7 +498,7 @@ _ecore_thread_worker_cleanup(void *data EINA_UNUSED)
 }
 
 static void *
-_ecore_thread_worker(void *data EINA_UNUSED)
+_ecore_thread_worker(void *data EINA_UNUSED, Eina_Thread t EINA_UNUSED)
 {
    eina_thread_cancellable_set(EINA_FALSE, NULL);
    EINA_THREAD_CLEANUP_PUSH(_ecore_thread_worker_cleanup, NULL);

-- 


Reply via email to