forked from enlightenment/efl
evas/cache - formatting
This commit is contained in:
parent
53fa4cd2d8
commit
0920a8e182
|
@ -81,9 +81,7 @@ on_error:
|
|||
}
|
||||
|
||||
work = _workers;
|
||||
_workers = EINA_INLIST_CONTAINER_GET(eina_inlist_remove(EINA_INLIST_GET(_workers),
|
||||
EINA_INLIST_GET(_workers)),
|
||||
Evas_Preload_Pthread_Worker);
|
||||
_workers = EINA_INLIST_CONTAINER_GET(eina_inlist_remove(EINA_INLIST_GET(_workers), EINA_INLIST_GET(_workers)), Evas_Preload_Pthread_Worker);
|
||||
LKU(_mutex);
|
||||
|
||||
if (work->func_heavy) work->func_heavy(work->data);
|
||||
|
@ -134,9 +132,7 @@ _evas_preload_thread_shutdown(void)
|
|||
while (_workers)
|
||||
{
|
||||
work = _workers;
|
||||
_workers = EINA_INLIST_CONTAINER_GET(eina_inlist_remove(EINA_INLIST_GET(_workers),
|
||||
EINA_INLIST_GET(_workers)),
|
||||
Evas_Preload_Pthread_Worker);
|
||||
_workers = EINA_INLIST_CONTAINER_GET(eina_inlist_remove(EINA_INLIST_GET(_workers), EINA_INLIST_GET(_workers)), Evas_Preload_Pthread_Worker);
|
||||
if (work->func_cancel) work->func_cancel(work->data);
|
||||
free(work);
|
||||
}
|
||||
|
@ -192,7 +188,7 @@ evas_preload_thread_run(void (*func_heavy) (void *data),
|
|||
|
||||
eina_threads_shutdown();
|
||||
|
||||
on_error:
|
||||
on_error:
|
||||
LKL(_mutex);
|
||||
if (_threads_count == 0)
|
||||
{
|
||||
|
@ -216,9 +212,7 @@ evas_preload_thread_cancel(Evas_Preload_Pthread *thread)
|
|||
{
|
||||
if (work == (Evas_Preload_Pthread_Worker *)thread)
|
||||
{
|
||||
_workers = EINA_INLIST_CONTAINER_GET(eina_inlist_remove(EINA_INLIST_GET(_workers),
|
||||
EINA_INLIST_GET(work)),
|
||||
Evas_Preload_Pthread_Worker);
|
||||
_workers = EINA_INLIST_CONTAINER_GET(eina_inlist_remove(EINA_INLIST_GET(_workers), EINA_INLIST_GET(work)), Evas_Preload_Pthread_Worker);
|
||||
LKU(_mutex);
|
||||
if (work->func_cancel) work->func_cancel(work->data);
|
||||
free(work);
|
||||
|
|
Loading…
Reference in New Issue