diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-24 14:49:51 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-05-24 14:49:51 +0200 |
| commit | 4bcb92fc47181c62af62a55377b62dcfa02252ae (patch) | |
| tree | e6790c631ce2fdcd8156c9dd8b8547d98005b258 /src/modinfo.h | |
| parent | 001e44fec45be3fe94d5075812547c0277f2e6d1 (diff) | |
Use a more generic 'prefetch' method instead of isValid().
Diffstat (limited to 'src/modinfo.h')
| -rw-r--r-- | src/modinfo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/modinfo.h b/src/modinfo.h index 37a2d24d..29e6124d 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -815,8 +815,20 @@ signals: protected: + /** + * + */ ModInfo(PluginContainer *pluginContainer); + /** + * @brief Prefetch content for this mod. + * + * This method can be used to prefetch content from the mod, e.g., for isValid() + * or getContents(). This method will only be called when first creating the mod + * using multiple threads for all the mods. + */ + virtual void prefetch() = 0; + static void updateIndices(); static bool ByName(const ModInfo::Ptr &LHS, const ModInfo::Ptr &RHS); |
