summaryrefslogtreecommitdiffstats
path: root/common/commands.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-04 15:38:27 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-05-04 15:38:27 +0200
commitbb3a79c8b71d6d4e2a4269bdcffb616b2db9d619 (patch)
tree1e750c48f39c56deedfd0f7484dbea28215063f3 /common/commands.h
parent6adf9a4734f15a2c0fa199897f76ded4659b83b7 (diff)
downloadsink-bb3a79c8b71d6d4e2a4269bdcffb616b2db9d619.tar.gz
sink-bb3a79c8b71d6d4e2a4269bdcffb616b2db9d619.zip
Limit the buffering on write.
Otherwise the system becomes rather unresponsive under load.
Diffstat (limited to 'common/commands.h')
-rw-r--r--common/commands.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/commands.h b/common/commands.h
index 6d5d39b..1548eac 100644
--- a/common/commands.h
+++ b/common/commands.h
@@ -24,7 +24,7 @@
24#include <flatbuffers/flatbuffers.h> 24#include <flatbuffers/flatbuffers.h>
25#include <QByteArray> 25#include <QByteArray>
26 26
27class QIODevice; 27class QLocalSocket;
28 28
29namespace Sink { 29namespace Sink {
30 30
@@ -55,9 +55,9 @@ enum CommandIds
55QByteArray name(int commandId); 55QByteArray name(int commandId);
56 56
57int SINK_EXPORT headerSize(); 57int SINK_EXPORT headerSize();
58void SINK_EXPORT write(QIODevice *device, int messageId, int commandId); 58void SINK_EXPORT write(QLocalSocket *device, int messageId, int commandId);
59void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size); 59void SINK_EXPORT write(QLocalSocket *device, int messageId, int commandId, const char *buffer, uint size);
60void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb); 60void SINK_EXPORT write(QLocalSocket *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb);
61} 61}
62 62
63} // namespace Sink 63} // namespace Sink