refs #679 CValueCache local signal relay moved to the point of emission, to tolerate different orders of initialization of application.

This commit is contained in:
Mathew Sutcliffe
2016-06-30 02:06:16 +01:00
parent 8b73da6ed6
commit 242e041ceb
6 changed files with 18 additions and 46 deletions

View File

@@ -147,20 +147,11 @@ namespace BlackMisc
public:
class BatchGuard;
//! Whether or not the cache can be distributed among multiple processes.
enum DistributionMode
{
LocalOnly, //!< Not distributed.
Distributed //!< Distributed among multiple processes.
};
//! Log categories
static const CLogCategoryList &getLogCategories();
//! Constructor.
//! \param mode Whether or not the cache can be distributed among multiple processes.
//! \param parent The parent of the QObject.
explicit CValueCache(DistributionMode mode, QObject *parent = nullptr);
explicit CValueCache(QObject *parent = nullptr);
//! Return map containing all values in the cache.
//! If prefix is provided then only those values whose keys start with that prefix.