diff options
author | Martin Hurton <hurtonm@gmail.com> | 2010-06-21 15:06:51 +0200 |
---|---|---|
committer | Martin Hurton <hurtonm@gmail.com> | 2010-06-21 15:06:51 +0200 |
commit | fca2e8e8cc30bcd134839f6d0f5f9963323dad2b (patch) | |
tree | fceade0043c87c74fec8b6ad3de00b1090feaa9c /src/session.cpp | |
parent | 10c28c1fc2f06c93e12a7c60f79a315cec7c5a52 (diff) |
Add SWAP support
Diffstat (limited to 'src/session.cpp')
-rw-r--r-- | src/session.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/session.cpp b/src/session.cpp index 3cd27fb..f798877 100644 --- a/src/session.cpp +++ b/src/session.cpp @@ -265,7 +265,7 @@ void zmq::session_t::process_attach (i_engine *engine_, writer_t *socket_writer = NULL; if (options.requires_in && !out_pipe) { - pipe_t *pipe = new (std::nothrow) pipe_t (owner, this, options.hwm); + pipe_t *pipe = new (std::nothrow) pipe_t (owner, this, options.hwm, options.swap); zmq_assert (pipe); out_pipe = &pipe->writer; out_pipe->set_endpoint (this); @@ -273,7 +273,7 @@ void zmq::session_t::process_attach (i_engine *engine_, } if (options.requires_out && !in_pipe) { - pipe_t *pipe = new (std::nothrow) pipe_t (this, owner, options.hwm); + pipe_t *pipe = new (std::nothrow) pipe_t (this, owner, options.hwm, options.swap); zmq_assert (pipe); in_pipe = &pipe->reader; in_pipe->set_endpoint (this); |