make ecore thread cancel work. someone knowing the internals should check this again.
authorjeffdameth <jeffdameth@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 9 Apr 2010 04:52:04 +0000 (04:52 +0000)
committerjeffdameth <jeffdameth@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 9 Apr 2010 04:52:04 +0000 (04:52 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@47866 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_thread.c

index 30afc14..b840fc0 100644 (file)
@@ -313,7 +313,7 @@ ecore_thread_cancel(Ecore_Thread *thread)
    pthread_mutex_unlock(&_mutex);
 
    /* Delay the destruction */
-   work->cancel = EINA_TRUE;
+   ((Ecore_Pthread_Worker*)thread)->cancel = EINA_TRUE;
    return EINA_FALSE;
 #else
    return EINA_TRUE;