summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-09-02 15:37:26 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-09-02 15:37:26 -0700
commit0dc59daa2eeb30523208a888fd3e25d421083136 (patch)
tree68504cb53e87b4e2c5422404df39e79d1a38cc6e /includes
parent9cb4c8073edea87d52bd0cf88f2317ead353eec2 (diff)
ZStreams are now using async operations to compress or decompress.
Diffstat (limited to 'includes')
-rw-r--r--includes/ZHandle.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/ZHandle.h b/includes/ZHandle.h
index e972466..5750365 100644
--- a/includes/ZHandle.h
+++ b/includes/ZHandle.h
@@ -23,14 +23,15 @@ class ZStream : public Handle {
virtual ssize_t write(const void * buf, size_t count) throw (GeneralException);
void detach() { m_detached = true; }
void flush() { doFlush(false); }
+ void setUseAsyncOp(bool useAsyncOp) { m_useAsyncOp = useAsyncOp; }
private:
void finish() { doFlush(true); }
void doFlush(bool finish);
IO<Handle> m_h;
z_stream m_zin, m_zout;
- bool m_detached = false, m_closed = false, m_eof = false;
String m_name;
uint8_t * m_in = NULL;
+ bool m_detached = false, m_closed = false, m_eof = false, m_useAsyncOp = true;
};
};