diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-04 15:38:27 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-04 15:38:27 +0200 |
commit | bb3a79c8b71d6d4e2a4269bdcffb616b2db9d619 (patch) | |
tree | 1e750c48f39c56deedfd0f7484dbea28215063f3 /common/commands.h | |
parent | 6adf9a4734f15a2c0fa199897f76ded4659b83b7 (diff) | |
download | sink-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.h | 8 |
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 | ||
27 | class QIODevice; | 27 | class QLocalSocket; |
28 | 28 | ||
29 | namespace Sink { | 29 | namespace Sink { |
30 | 30 | ||
@@ -55,9 +55,9 @@ enum CommandIds | |||
55 | QByteArray name(int commandId); | 55 | QByteArray name(int commandId); |
56 | 56 | ||
57 | int SINK_EXPORT headerSize(); | 57 | int SINK_EXPORT headerSize(); |
58 | void SINK_EXPORT write(QIODevice *device, int messageId, int commandId); | 58 | void SINK_EXPORT write(QLocalSocket *device, int messageId, int commandId); |
59 | void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, const char *buffer, uint size); | 59 | void SINK_EXPORT write(QLocalSocket *device, int messageId, int commandId, const char *buffer, uint size); |
60 | void SINK_EXPORT write(QIODevice *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb); | 60 | void SINK_EXPORT write(QLocalSocket *device, int messageId, int commandId, flatbuffers::FlatBufferBuilder &fbb); |
61 | } | 61 | } |
62 | 62 | ||
63 | } // namespace Sink | 63 | } // namespace Sink |