summaryrefslogtreecommitdiff
path: root/src/pipe.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-03-24 15:43:03 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-03-24 15:43:03 +0100
commit507718ee1a56e376c06389c513de3868297fec35 (patch)
tree1b007ee25899ed3c6971ae2001bb252f128b2d55 /src/pipe.hpp
parentbd9d7715ebe864d1aa85700d1b55b4f37568a1a4 (diff)
ZMQ_HWM type changed to int
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/pipe.hpp')
-rw-r--r--src/pipe.hpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/pipe.hpp b/src/pipe.hpp
index ed13478..3230d02 100644
--- a/src/pipe.hpp
+++ b/src/pipe.hpp
@@ -23,19 +23,18 @@
#include "../include/zmq.h"
-#include "stdint.hpp"
#include "array.hpp"
#include "ypipe.hpp"
#include "config.hpp"
#include "object.hpp"
+#include "stdint.hpp"
namespace zmq
{
// Creates a pipe. Returns pointer to reader and writer objects.
void create_pipe (object_t *reader_parent_, object_t *writer_parent_,
- uint64_t hwm_, class reader_t **reader_,
- class writer_t **writer_);
+ int hwm_, class reader_t **reader_, class writer_t **writer_);
// The shutdown mechanism for pipe works as follows: Either endpoint
// (or even both of them) can ask pipe to terminate by calling 'terminate'
@@ -57,7 +56,7 @@ namespace zmq
class reader_t : public object_t, public array_item_t
{
- friend void create_pipe (object_t*, object_t*, uint64_t,
+ friend void create_pipe (object_t*, object_t*, int,
reader_t**, writer_t**);
friend class writer_t;
@@ -77,7 +76,7 @@ namespace zmq
private:
- reader_t (class object_t *parent_, pipe_t *pipe_, uint64_t lwm_);
+ reader_t (class object_t *parent_, pipe_t *pipe_, int lwm_);
~reader_t ();
// To be called only by writer itself!
@@ -100,7 +99,7 @@ namespace zmq
class writer_t *writer;
// Low watermark for in-memory storage (in bytes).
- uint64_t lwm;
+ int lwm;
// Number of messages read so far.
uint64_t msgs_read;
@@ -126,7 +125,7 @@ namespace zmq
class writer_t : public object_t, public array_item_t
{
- friend void create_pipe (object_t*, object_t*, uint64_t,
+ friend void create_pipe (object_t*, object_t*, int,
reader_t**, writer_t**);
public:
@@ -155,7 +154,7 @@ namespace zmq
private:
writer_t (class object_t *parent_, pipe_t *pipe_, reader_t *reader_,
- uint64_t hwm_);
+ int hwm_);
~writer_t ();
// Command handlers.
@@ -175,7 +174,7 @@ namespace zmq
reader_t *reader;
// High watermark for in-memory storage (in bytes).
- uint64_t hwm;
+ int hwm;
// Last confirmed number of messages read from the pipe.
// The actual number can be higher.