Release lock before returning

SVN revision: 47980
This commit is contained in:
Iván Briano 2010-04-12 21:51:35 +00:00
parent 8a8ef913c8
commit e0dedc5eb9
1 changed files with 2 additions and 0 deletions

View File

@ -303,6 +303,8 @@ ecore_thread_cancel(Ecore_Thread *thread)
{
_ecore_thread_data = eina_list_remove_list(_ecore_thread_data, l);
pthread_mutex_unlock(&_mutex);
if (work->func_cancel)
work->func_cancel((void*) work->data);
free(work);