Release lock before returning
authorsachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 12 Apr 2010 21:51:35 +0000 (21:51 +0000)
committersachiel <sachiel@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 12 Apr 2010 21:51:35 +0000 (21:51 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@47980 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_thread.c

index b840fc0..8c62db4 100644 (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);