ecore_thread_cancel is now nullsafe, returning EINA_TRUE

SVN revision: 50523
This commit is contained in:
Mike Blumenkrantz 2010-07-26 20:41:54 +00:00
parent 7f68aaa0c0
commit 24a6c8ce55
1 changed files with 3 additions and 0 deletions

View File

@ -472,6 +472,9 @@ ecore_thread_cancel(Ecore_Thread *thread)
Ecore_Pthread_Worker *work;
Eina_List *l;
if (!work)
return EINA_TRUE;
pthread_mutex_lock(&_ecore_pending_job_threads_mutex);
EINA_LIST_FOREACH(_ecore_pending_job_threads, l, work)