revision 1119:45602839e067
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 1119:45602839e067 |
parent | 1118:0c00e6594d01 |
child | 1120:7c40a0f687b3 |
author | nkeynes |
date | Fri Sep 10 08:48:34 2010 +1000 (13 years ago) |
Run the eventq at the end of the time-slice rather than the beginning, so
that it runs for the correct period of time when the time-slice finishes
early
that it runs for the correct period of time when the time-slice finishes
early
src/dreamcast.c | view | annotate | diff | log | ||
src/eventq.c | view | annotate | diff | log | ||
src/eventq.h | view | annotate | diff | log |
1.1 --- a/src/dreamcast.c Wed Sep 08 23:16:47 2010 +10001.2 +++ b/src/dreamcast.c Fri Sep 10 08:48:34 2010 +10001.3 @@ -91,8 +91,10 @@1.4 {1.5 char *bios_path = lxdream_get_global_config_path_value(CONFIG_BIOS_PATH);1.6 char *flash_path = lxdream_get_global_config_path_value(CONFIG_FLASH_PATH);1.7 +1.8 + /* Initialize the event queue first */1.9 + event_init();1.11 - dreamcast_register_module( &eventq_module );1.12 /* Register the memory framework */1.13 dreamcast_register_module( &mem_module );1.15 @@ -127,6 +129,7 @@1.16 dreamcast_register_module( &aica_module );1.17 dreamcast_register_module( &maple_module );1.18 dreamcast_register_module( &ide_module );1.19 + dreamcast_register_module( &eventq_module );1.21 g_free(bios_path);1.22 g_free(flash_path);
2.1 --- a/src/eventq.c Wed Sep 08 23:16:47 2010 +10002.2 +++ b/src/eventq.c Fri Sep 10 08:48:34 2010 +10002.3 @@ -53,7 +53,7 @@2.4 void event_save_state( FILE *f );2.5 int event_load_state( FILE * f );2.7 -struct dreamcast_module eventq_module = { "EVENTQ", event_init, event_reset, NULL, event_run_slice,2.8 +struct dreamcast_module eventq_module = { "EVENTQ", NULL, event_reset, NULL, event_run_slice,2.9 NULL, event_save_state, event_load_state };2.11 static void event_update_pending( )
3.1 --- a/src/eventq.h Wed Sep 08 23:16:47 2010 +10003.2 +++ b/src/eventq.h Fri Sep 10 08:48:34 2010 +10003.3 @@ -71,6 +71,11 @@3.4 */3.5 void event_execute();3.7 +/**3.8 + * Initialize the event queue.3.9 + */3.10 +void event_init();3.11 +3.12 #define MAX_EVENT_ID 1283.14 /* Events 1..96 are defined as the corresponding ASIC events. */
.