mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 13:15:39 +08:00
refs #885 Regenerate revision file from available JSON files.
This commit is contained in:
@@ -110,10 +110,16 @@ namespace BlackMisc
|
||||
//! During update, writes a new revision file with new timestamps.
|
||||
void writeNewRevision(const QMap<QString, qint64> ×tamps, const QSet<QString> &excludeKeys = {});
|
||||
|
||||
//! Write a new revision file with keys deduced from the available JSON files.
|
||||
void regenerate(const CValueCachePacket &keys);
|
||||
|
||||
//! Release the revision file lock and mark everything up-to-date (called by LockGuard destructor).
|
||||
//! \param keepPromises Don't break pending promises.
|
||||
void finishUpdate(bool keepPromises = false);
|
||||
|
||||
//! Existing revision file was found.
|
||||
bool isFound() const;
|
||||
|
||||
//! True if beginUpdate found some values with timestamps newer than in memory.
|
||||
bool isPendingRead() const;
|
||||
|
||||
@@ -165,6 +171,7 @@ namespace BlackMisc
|
||||
private:
|
||||
mutable QMutex m_mutex { QMutex::Recursive };
|
||||
bool m_updateInProgress = false;
|
||||
bool m_found = false;
|
||||
bool m_pendingRead = false;
|
||||
bool m_pendingWrite = false;
|
||||
QString m_basename;
|
||||
|
||||
Reference in New Issue
Block a user