CoreTiming: Guarantee FIFO processing of timed events

The min-heap provides no ordering when the key is the same on 2
nodes. Disambiguate identical times by tracking the order items
were added into the queue.
This commit is contained in:
EmptyChaos
2016-09-08 09:46:42 +00:00
parent a6905d1641
commit 2e14920e16
3 changed files with 39 additions and 15 deletions

View File

@ -70,7 +70,7 @@ static Common::Event g_compressAndDumpStateSyncEvent;
static std::thread g_save_thread;
// Don't forget to increase this after doing changes on the savestate system
static const u32 STATE_VERSION = 57;
static const u32 STATE_VERSION = 58;
// Maps savestate versions to Dolphin versions.
// Versions after 42 don't need to be added to this list,