Files
MapLibreParticleLab/platform/default/default_file_source.cpp
Konstantin Käfer c6ab20e5c6 [core] initialize OfflineDatabase asynchronously in DefaultFileSource
Sometimes, initialization can take hundreds of milliseconds, in particular when the database doesn't exist yet, or when the app/device is doing a lot of I/O already. Instead of synchronously initializing the OfflineDatabase objects, we're now asynchronously initializing the object through a self-sent message that by virtue of being the first message for this actor guarantees that the object is there when it's needed by other member functions.
2017-08-28 13:16:27 +02:00

12 KiB