summaryrefslogtreecommitdiff
path: root/src/lib/evas/include/evas_common_private.h
diff options
context:
space:
mode:
authorWonki Kim <wonki_.kim@samsung.com>2016-11-22 14:33:48 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-11-22 14:50:38 +0900
commit88e1fc9613389a264c69b159f5066476690c5af2 (patch)
tree6f99fbfab0d21a9d676567ce9db87dfd79065567 /src/lib/evas/include/evas_common_private.h
parent8b9fe4addaf700ea4f7f605e5b148d7d4e47409e (diff)
evas: Add shutdown logic on thread creation failure
Summary: In case of thread creation failure, shutdown logic will be stuck. To prevent stuck, set exit variables to make thread_shutdown working even if init fails. Also modify init logics to return init result to a caller. Reviewers: jypark, woohyun, cedric, jpeg Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D4411 Note (@jpeg): I have modified the patch just a little bit. Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
Diffstat (limited to 'src/lib/evas/include/evas_common_private.h')
-rw-r--r--src/lib/evas/include/evas_common_private.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/evas/include/evas_common_private.h b/src/lib/evas/include/evas_common_private.h
index c0df4ce12d..9311e2ce7d 100644
--- a/src/lib/evas/include/evas_common_private.h
+++ b/src/lib/evas/include/evas_common_private.h
@@ -566,7 +566,7 @@ struct _Image_Entry_Flags
566 Eina_Bool alpha_sparse : 1; 566 Eina_Bool alpha_sparse : 1;
567 Eina_Bool preload_done : 1; 567 Eina_Bool preload_done : 1;
568 Eina_Bool delete_me : 1; 568 Eina_Bool delete_me : 1;
569 569
570 Eina_Bool pending : 1; 570 Eina_Bool pending : 1;
571 Eina_Bool rotated : 1; 571 Eina_Bool rotated : 1;
572 Eina_Bool unload_cancel : 1; 572 Eina_Bool unload_cancel : 1;
@@ -675,7 +675,7 @@ struct _Image_Entry
675 /* Reference to the file */ 675 /* Reference to the file */
676 Eina_File *f; 676 Eina_File *f;
677 void *loader_data; 677 void *loader_data;
678 678
679 Image_Entry_Flags flags; 679 Image_Entry_Flags flags;
680 Evas_Image_Scale_Hint scale_hint; 680 Evas_Image_Scale_Hint scale_hint;
681 void *data1, *data2; 681 void *data1, *data2;
@@ -1315,8 +1315,8 @@ EAPI int evas_async_events_process_blocking(void);
1315void evas_render_rendering_wait(Evas_Public_Data *evas); 1315void evas_render_rendering_wait(Evas_Public_Data *evas);
1316void evas_all_sync(void); 1316void evas_all_sync(void);
1317 1317
1318void evas_thread_init(void); 1318int evas_thread_init(void);
1319void evas_thread_shutdown(void); 1319int evas_thread_shutdown(void);
1320EAPI void evas_thread_cmd_enqueue(Evas_Thread_Command_Cb cb, void *data); 1320EAPI void evas_thread_cmd_enqueue(Evas_Thread_Command_Cb cb, void *data);
1321EAPI void evas_thread_queue_flush(Evas_Thread_Command_Cb cb, void *data); 1321EAPI void evas_thread_queue_flush(Evas_Thread_Command_Cb cb, void *data);
1322 1322