forked from enlightenment/efl
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
This commit is contained in:
parent
1260333ae5
commit
802f414b25
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue