diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-08-25 17:55:32 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-08-25 17:55:32 +0200 |
commit | 7e9f79d3e115642e61b254677bcda5797a672875 (patch) | |
tree | 7301946d471f618c2ae24c9d893413166fe05f2a /platform/darwin/src/MGLPointCollection.h | |
parent | b0c03f9396f52264184f9a0b18efdf89e787799d (diff) | |
download | qtlocation-mapboxgl-upstream/defaultfilesource-async-init.tar.gz |
[core] initialize OfflineDatabase asynchronously in DefaultFileSourceupstream/defaultfilesource-async-init
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.
Diffstat (limited to 'platform/darwin/src/MGLPointCollection.h')
0 files changed, 0 insertions, 0 deletions