From 22af1ed535b4afc8db3804e72bc5adb1a1b28d60 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 25 Nov 2016 08:27:06 +0100 Subject: 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. --- common/resourcecontrol.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common/resourcecontrol.h') 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 @@ #include #include "inspection.h" +#include "flush.h" namespace Sink { namespace ResourceControl { @@ -58,5 +59,8 @@ KAsync::Job SINK_EXPORT flushMessageQueue(const QByteArray &resourceIdenti */ KAsync::Job SINK_EXPORT flushReplayQueue(const QByteArrayList &resourceIdentifier); KAsync::Job SINK_EXPORT flushReplayQueue(const QByteArray &resourceIdentifier); + +KAsync::Job SINK_EXPORT flush(Flush::FlushType, const QByteArray &resourceIdentifier); + } } -- cgit v1.2.3