Commit Graph

34 Commits

Author SHA1 Message Date
Mathew Sutcliffe
4bd4baa535 refs #628 Use the metaclass mixins in all value classes. 2016-04-03 18:17:43 +01:00
Mathew Sutcliffe
eb4df2d893 refs #624 Use auto function return type deduction. 2016-03-22 16:02:33 +00:00
Mathew Sutcliffe
91494ea2e5 refs #624 Swap functions, move constructors, and move assignment operators should all be noexcept where possible. 2016-03-21 02:20:01 +00:00
Mathew Sutcliffe
b33781717e refs #624 Remove noexcept from destructors, which are implicitly noexcept. 2016-03-19 21:07:56 +00:00
Mathew Sutcliffe
c6a038aaa8 refs #601 Simplify syncLoad and rename to synchronize.
Now it doesn't return anything, it just causes the next async get() to be synchronized with the latest loaded value.
It does this by hooking into the queue introduced in the previous commit.
2016-03-18 01:07:38 +00:00
Mathew Sutcliffe
06ad77ee9d refs #601 CDataCache overrides connectPage to provide a queue that is more flexible than the usual Qt::QueuedConnection. 2016-03-18 01:07:32 +00:00
Mathew Sutcliffe
899d94ca74 refs #601 Refactor signal/slot connections from CValuePage constructor into virtual method of CValueCache
so that derived classes can override the behaviour.
2016-03-18 01:07:27 +00:00
Mathew Sutcliffe
f680cee8ed refs #601 Slot inhibitor no longer needed, this reverts commit:bc2e0faa. 2016-03-18 01:07:24 +00:00
Mathew Sutcliffe
a47a2681bd refs #601 Fixed thread safety of get() by adding getCopy(). 2016-03-17 19:45:15 +00:00
Klaus Basan
3e21b718d9 refs #601, #618 Fixed mistake. 2016-03-17 19:45:12 +00:00
Klaus Basan
144ba62572 refs #601, #600, #485 Status message handling.
* follow up of debug session, added failure/success to status message
* return status messages instead of directly logging in functions returning CStatusMessage.
* Ignore empty preformatted messages.
* new log category
2016-03-17 19:45:04 +00:00
Roland Winklmeier
7953d550ea Fix linux clang errors and warnings
refs #596
2016-02-15 18:35:34 +01:00
Roland Winklmeier
858320da4d Workaround doxygen link request failure warning
Doxygen raises a warnings saying "explicit link request to
'iterator' could not be resolved".
2016-02-08 01:53:17 +01:00
Roland Winklmeier
794bf0cd74 Fix doxygen copydoc documentation
The following issues were fixed
* Fixed wrong/missing namespaces
* Fixed obvious typos in documentation
* Documentation not in sync with source code

refs #544
2016-02-08 01:53:17 +01:00
Mathew Sutcliffe
a58dddfa19 refs #581, #592 Make sure syncLoad checks if the next load would load the value, if it is not currently loading. 2016-02-06 19:45:49 +00:00
Mathew Sutcliffe
e0607eb83c refs #581 Synchronous loading of data cache value by returning a future.
CDataCacheRevision maintains a list of promises corresponding to the futures, so they can be delivered
when the loading is finished. Corresponding notification slot is inhibited to avoid duplicate notification.
2016-02-06 19:45:47 +00:00
Mathew Sutcliffe
bc2e0faa36 refs #581 CValueCachePacket contains an inhibitions list that can be used to disable specific notification slots. 2016-02-06 19:45:47 +00:00
Mathew Sutcliffe
e1b40f54cb refs #581 Allow setting the timestamp when putting a value in the cache. 2016-02-06 19:45:45 +00:00
Mathew Sutcliffe
97fad301ae refs #581 Use JSON to store timestamps in data cache revision file. 2016-02-06 19:45:45 +00:00
Mathew Sutcliffe
956d393bb1 refs #545 CSetting<T>::setAndSave to set and save a setting in one step. 2016-01-27 23:37:46 +00:00
Mathew Sutcliffe
d9167cf226 refs #545 CCached allows to query whether a value is saved or not. 2016-01-27 23:37:45 +00:00
Mathew Sutcliffe
2c0b4f9555 refs #545 CValueCache keeps track of which values have been saved. 2016-01-27 23:37:44 +00:00
Mathew Sutcliffe
757710797e refs #545 Refactoring: extract method elementsStartingWith. 2016-01-27 23:37:43 +00:00
Mathew Sutcliffe
366030f2a9 refs #536 Moved CDataCache serialization into a worker thread. 2015-12-08 21:16:26 +00:00
Michał Garapich
1b06e15b61 refs #510 Remove underscores from all the source file names 2015-11-22 12:53:09 +01:00
Klaus Basan
4d4d6fcdc9 Fixed value cache registerMetadata
(MS/KB slack)
2015-11-19 21:07:55 +00:00
Mathew Sutcliffe
0ca4797bcf refs #494 Get the filename used for serializing a specific cached value, or list of all files used by whole cache. 2015-11-19 21:05:44 +00:00
Mathew Sutcliffe
8a3cb5f661 refs #494 Ability to "delete" all values in cache. 2015-11-19 21:05:41 +00:00
Mathew Sutcliffe
966eed9044 refs #494 Using CValueCachePacket, cache values are given timestamps. 2015-11-19 21:05:38 +00:00
Mathew Sutcliffe
eb11b69c6d refs #494 Value class CValueCachePacket is a packet of cache value changes with timestamps. 2015-11-19 21:05:35 +00:00
Mathew Sutcliffe
21d61e1def refs #495 Using LockFree to make CCached::get() threadsafe. 2015-11-19 21:05:24 +00:00
Mathew Sutcliffe
6601393df8 refs #460 CDataCache for dynamic (downloaded/generated) data with file-based distribution among processes. 2015-11-19 20:58:26 +00:00
Mathew Sutcliffe
54bc3f265a refs #450 Added disk file saving and loading of CValueCache. 2015-11-19 20:58:10 +00:00
Mathew Sutcliffe
31c081c14d refs #297 Added the kernel of the distributed value cache system. 2015-11-19 20:51:25 +00:00