summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2019-09-23 06:17:45 +0000
committerCedric Bail <cedric.bail@free.fr>2019-09-23 10:33:15 -0700
commit802f414b257aa0203d47abe2d01c788ae276cd91 (patch)
tree1bb73b85d0720af27360ddc5ef63573750bc10eb
parent1260333ae55dfc4dae54086a22b42d90fbb13511 (diff)
downloadefl-802f414b257aa0203d47abe2d01c788ae276cd91.tar.gz
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.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D10073
-rw-r--r--src/lib/ecore/ecore_thread.c7
1 files 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);