diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-25 08:27:06 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-11-25 09:23:55 +0100 |
commit | 22af1ed535b4afc8db3804e72bc5adb1a1b28d60 (patch) | |
tree | 07665f41d5b40d658e95a64bb76020f1fd9d088e /common/resourcecontrol.h | |
parent | 64d7d7bdd1edb2bcc305ca007784d0708cf7ef3c (diff) | |
download | sink-22af1ed535b4afc8db3804e72bc5adb1a1b28d60.tar.gz sink-22af1ed535b4afc8db3804e72bc5adb1a1b28d60.zip |
Added the flush command.
Instead of trying to actually flush queues, we send a special command
through the same queues as the other commands and can thus guarantee
that the respective commands have been processed without blocking
anything.
Diffstat (limited to 'common/resourcecontrol.h')
-rw-r--r-- | common/resourcecontrol.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/resourcecontrol.h b/common/resourcecontrol.h index 9e603e4..b910441 100644 --- a/common/resourcecontrol.h +++ b/common/resourcecontrol.h | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <Async/Async> | 26 | #include <Async/Async> |
27 | 27 | ||
28 | #include "inspection.h" | 28 | #include "inspection.h" |
29 | #include "flush.h" | ||
29 | 30 | ||
30 | namespace Sink { | 31 | namespace Sink { |
31 | namespace ResourceControl { | 32 | namespace ResourceControl { |
@@ -58,5 +59,8 @@ KAsync::Job<void> SINK_EXPORT flushMessageQueue(const QByteArray &resourceIdenti | |||
58 | */ | 59 | */ |
59 | KAsync::Job<void> SINK_EXPORT flushReplayQueue(const QByteArrayList &resourceIdentifier); | 60 | KAsync::Job<void> SINK_EXPORT flushReplayQueue(const QByteArrayList &resourceIdentifier); |
60 | KAsync::Job<void> SINK_EXPORT flushReplayQueue(const QByteArray &resourceIdentifier); | 61 | KAsync::Job<void> SINK_EXPORT flushReplayQueue(const QByteArray &resourceIdentifier); |
62 | |||
63 | KAsync::Job<void> SINK_EXPORT flush(Flush::FlushType, const QByteArray &resourceIdentifier); | ||
64 | |||
61 | } | 65 | } |
62 | } | 66 | } |