Commit Graph

184 Commits

Author SHA1 Message Date
twinaphex
f6a3809d7f (runloop_data.c) Prevent warning 2015-05-07 09:28:06 +02:00
Twinaphex
d5e23012f1 (Data runloop) Split up overlay task code to tasks/task_overlay.c 2015-05-05 18:16:09 +02:00
Twinaphex
8c75fd3530 Split up database runloop data code to tasks/task_database.c 2015-05-05 18:05:59 +02:00
Twinaphex
a04debf7c5 (Tasks/data runloop) Move code to task_file_transfer.c 2015-05-05 17:58:37 +02:00
Twinaphex
684a0555ed Move code to tasks/task_http.c 2015-05-05 17:36:58 +02:00
Twinaphex
54550912f5 (Runloop data) Start rearranging code 2015-05-05 09:50:00 +02:00
Alcaro
61bfe0d1af Fix race between writing ->thread_inited and ->alive. 2015-05-04 20:33:20 +02:00
twinaphex
9c9e26d70c Add texture_image_set_color_shifts and texture_image_color_convert
to wallpaper_cb function
2015-05-04 10:18:00 +02:00
twinaphex
e08fecd727 Pass runloop handle to rarch_main_data_active function -
make sure mutex gets unlocked at the end in rarch_main_data_overlay_iterate
even if driver or driver->overlay is NULL
2015-05-03 02:33:33 +02:00
twinaphex
6d89a92952 (Runloop data) Move sleeping function call up - unlock mutex afterwards 2015-05-03 00:49:37 +02:00
twinaphex
b68e4237e9 (Runloop data) Only let data runloop sleep if there is no activity
ongoing
2015-05-03 00:48:23 +02:00
twinaphex
d97b744b32 (runloop.c) Cleanup 2015-04-27 05:36:41 +02:00
twinaphex
bea1ae5dbd (runloop_data.c) Some more robustness checks 2015-04-26 00:28:33 +02:00
twinaphex
a84d53ebba (runloop_data.c) Make rarch_main_data_overlay_iterate more robust 2015-04-26 00:27:08 +02:00
twinaphex
4e5bf65e23 Create HAVE_RPNG define 2015-04-19 16:55:03 +02:00
Twinaphex
946e7b6b86 Remove unused variable 2015-04-14 12:09:08 +02:00
twinaphex
bb6331874a Refactor database runloop code 2015-04-14 09:27:55 +02:00
twinaphex
b7321df63c (Database) Fix database runloop on data runloop 2015-04-14 08:10:12 +02:00
twinaphex
c25e397261 Move rarch_main_data_overlay_iterate over to data_runloop_iterate 2015-04-13 20:18:32 +02:00
twinaphex
79c93b444d Crate main_data_overlay_image_upload_iterate 2015-04-13 19:22:35 +02:00
twinaphex
d7ee7efac5 (runloop_data.c) Refactors 2015-04-12 07:17:55 +02:00
Twinaphex
3fbf105c5e (runloop_data.c) Sleep for 10 milliseconds per data runloop thread
iteration - should fix high CPU usage issues
2015-04-12 06:45:38 +02:00
twinaphex
f16e19e5b4 (runloop_data.c) Cleanups/style nits 2015-04-11 09:33:20 +02:00
twinaphex
89366b9b35 (runloop_data.c) Cleanups 2015-04-11 09:25:41 +02:00
twinaphex
6cb2c57c0e (DB) Create message queue for db operations 2015-04-11 09:17:27 +02:00
twinaphex
09feb15e97 Simpler way of showing download progress message on threaded
data runloop (also usable for other messages in the future)
2015-04-11 03:34:26 +02:00
twinaphex
6b617f498b Refactor rarch_main_data_db_iterate some more 2015-04-11 03:13:52 +02:00
twinaphex
b385e0f39e (rarch_main_data_db_iterate) Make it more robust 2015-04-11 03:06:50 +02:00
Twinaphex
4f02cc306b (Data runloop) Remove unused variable 2015-04-11 02:06:33 +02:00
twinaphex
156204293c Create rarch_main_data_nbio_image_upload_iterate 2015-04-11 02:01:08 +02:00
twinaphex
91e70cae41 (Data runloop) Cleanup some unused variables 2015-04-11 01:42:16 +02:00
twinaphex
11d75d088c (data runloop) Start creating separate message queue for data runloop 2015-04-11 01:17:46 +02:00
twinaphex
d4b10f1094 Comment out download progress message for now - causes threading
issues with threaded data runloop
2015-04-11 00:11:49 +02:00
twinaphex
a27c0714cb Take chunk_type out of struct 2015-04-10 23:45:56 +02:00
twinaphex
642a5ddb40 Put HAVE_THERADS guard around conditional 2015-04-10 23:31:53 +02:00
twinaphex
64e3e40bb6 rarch_main_data_thread_init - cleanup 2015-04-10 23:22:57 +02:00
twinaphex
c9986f871d Cleanup rarch_main_data_thread_init 2015-04-10 23:20:48 +02:00
twinaphex
c4020ebbd3 rarch_main_data_thread_init - cleanup 2015-04-10 23:17:29 +02:00
twinaphex
47b3895208 (Data runloop) Create locks before creating thread 2015-04-10 23:15:19 +02:00
twinaphex
48b71c8e01 (Runloop data) Move http_iterate to non-threaded data runloop for now - code
not thread-safe for now
2015-04-10 22:41:37 +02:00
twinaphex
9a36db00a4 Put rarch_main_data_nbio_iterate on threaded data runloop 2015-04-10 22:36:14 +02:00
twinaphex
ce5f3a9171 Start using threaded data runloop 2015-04-10 22:30:56 +02:00
twinaphex
830af534b6 (Runloop) Move some functions out of data_runloop_iterate 2015-04-10 22:16:07 +02:00
twinaphex
1ed0fd0495 (runloop_data.c) Refactor HTTP runloop code 2015-04-10 22:01:07 +02:00
twinaphex
d9c568f6e8 Refactor rarch_main_data_nbio_image_iterate 2015-04-10 20:46:31 +02:00
twinaphex
f13ab52ff6 (runloop_data.c) Early return if image is NULL 2015-04-10 20:29:48 +02:00
twinaphex
1949a2dfa5 Create rarch_main_data_nbio_image_iterate 2015-04-10 20:26:25 +02:00
twinaphex
d4b4d5e3b9 Start refactoring runloop_data 2015-04-10 20:22:21 +02:00
Lioncash
b68048e6db Fix some printf format specifiers
Gets rid of warnings on higher warning levels
2015-04-03 15:09:17 -04:00
twinaphex
bff9eaa4f2 (runloop_data.c) Initialize variable to prevent warning 2015-03-29 17:29:05 +02:00
Radius
12fc6fa3c6 fix indentation 2015-03-25 22:28:59 -05:00
Andrés
20b6bbc659 Print progress in the OSD 2015-03-25 16:21:34 -05:00
Andrés
d8eb6d031f Make download progress a percentage 2015-03-25 15:55:57 -05:00
twinaphex
c7e78d48d5 Create runloop_data.h 2015-03-24 13:45:53 +01:00
twinaphex
eb1dda367c Take out IS_SALAMANDER define in runloop_data.c 2015-03-24 12:56:55 +01:00
twinaphex
ba938da348 Fixes segfault with environ SHUTDOWN with prboom 2015-03-23 23:40:36 +01:00
Twinaphex
242bfaba78 Remove unused variables 2015-03-22 09:36:32 +01:00
twinaphex
3181705a2d Style nits 2015-03-22 08:00:53 +01:00
twinaphex
36351bf78d Create menu_driver_load_background 2015-03-22 06:48:03 +01:00
twinaphex
4b8de58878 Rename functions 2015-03-22 03:41:20 +01:00
Twinaphex
89ff0f0fe4 Update data_runloop_iterate 2015-03-22 01:21:28 +01:00
twinaphex
7678433cac (MSVC) Buildfixes 2015-03-21 06:48:32 +01:00
twinaphex
6cefa69aa4 Go through settings pointer 2015-03-20 19:48:23 +01:00
twinaphex
106e5e9eb4 rarch_main_data_deinit - add free 2015-03-20 18:55:58 +01:00
twinaphex
c287b03841 g_data_runloop - turn it into a pointer 2015-03-20 18:54:03 +01:00
twinaphex
1481c09402 Go through wrapper for accessing g_data_runloop 2015-03-20 18:36:18 +01:00
twinaphex
27b6d5776a Cleanups 2015-03-20 18:07:09 +01:00
twinaphex
d2c97de070 Move net_compat/net_http to libretro-common 2015-03-20 17:56:00 +01:00
twinaphex
873c306a41 (PSP) Buildfix 2015-03-20 02:10:14 +01:00
twinaphex
f73e65fc7c runloop_data.c - update 2015-03-20 01:50:14 +01:00
twinaphex
7a8325950b Ifdef some code with HAVE_THREADS 2015-03-20 01:43:58 +01:00
twinaphex
f6a791a3e0 Call rarch_main_data_deinit from outside 2015-03-19 07:28:46 +01:00
twinaphex
58cf81d1d8 Refactor thrading code in runloop_data.c 2015-03-19 07:18:27 +01:00
twinaphex
461e358693 (Runloop data) More changes 2015-03-19 00:13:54 +01:00
twinaphex
14089975b4 (Runloop data) Flesh out data thread callback 2015-03-18 23:39:33 +01:00
twinaphex
e8bfadae1d (runloop data) More changes 2015-03-18 23:20:07 +01:00
twinaphex
06279ee6c3 (data runloop) Refactors 2015-03-18 23:13:00 +01:00
twinaphex
0d16858eff (runloop_data.c) Some changes 2015-03-18 22:37:27 +01:00
twinaphex
578f59292b (runloop data) Add HAVE_THREADS around some threading-only code 2015-03-18 22:27:52 +01:00
twinaphex
b6bf600393 Begin with experimental threading implementation of data runloop 2015-03-18 22:11:53 +01:00
twinaphex
b6ad998624 Refactor rarch_main_data_clean_state 2015-03-18 21:26:36 +01:00
twinaphex
4aa262b1ed Create rarch_main_is_idle 2015-03-18 20:48:17 +01:00
twinaphex
3670ef2ac5 Go through driver_get_ptr to grab pointer to driver struct 2015-03-18 19:40:00 +01:00
twinaphex
7378299282 Create rarch_main_get_ptr 2015-03-18 06:47:22 +01:00
twinaphex
8fd08bb6fe Move internal struct definition to runloop_data.c 2015-03-18 05:50:37 +01:00
twinaphex
dc17a30f17 Create rarch_main_data_clear_state 2015-03-18 05:35:05 +01:00
twinaphex
86366dba1e (PSP) buildfix 2015-03-15 19:32:11 +01:00
twinaphex
4729da05bd (runloop_data.c) Add DATA_TYPE_OVERLAY 2015-03-15 07:07:59 +01:00
twinaphex
f094a76c22 Simplify rarch_main_data_msg_queue_push 2015-03-15 06:44:01 +01:00
twinaphex
27367a733b (runloop_data.c) Create rarch_main_data_msg_queue_push 2015-03-15 06:41:04 +01:00
twinaphex
892e665f40 Move definition of globals for g_data_runloop and g_runloop
out of settings.c
2015-03-15 03:21:58 +01:00
twinaphex
96ae2e9882 Move code over to runloop.h 2015-03-15 02:00:11 +01:00
twinaphex
55f517fff0 Put ifdef around rarch_main_data_iterate_overlay 2015-03-15 01:46:00 +01:00
twinaphex
7d45268506 (runloop_data.c) Fix uninitialized variable warning 2015-03-15 01:44:58 +01:00
twinaphex
4a68e58b8c (runloop_data.c) Move rarch_main_iterate_overlay_state to runloop_data.c 2015-03-15 01:39:43 +01:00
twinaphex
2103c13932 Fix Wii build 2015-03-14 21:32:48 +01:00
twinaphex
990253ac7f (Database) Move msg_queue_clear/msg_queue_push to rdl free function 2015-03-14 20:22:45 +01:00
twinaphex
96387d5974 (runloop_data.c) Pass http_handle_t pointer to callback function 2015-03-14 20:04:53 +01:00
twinaphex
55a3b5a80f (runloop_data.c) Pass pointers around 2015-03-14 19:59:37 +01:00
twinaphex
4feec93426 (runloop data) Cleanups 2015-03-14 15:54:16 +01:00