Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
c42343d3
Commit
c42343d3
authored
Mar 13, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pipe_t::rollback removes only unfinished message from the pipe rather than all unflushed messages
parent
dcb98369
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
pipe.cpp
src/pipe.cpp
+4
-0
pipe.hpp
src/pipe.hpp
+1
-1
No files found.
src/pipe.cpp
View file @
c42343d3
...
...
@@ -170,6 +170,10 @@ void zmq::writer_t::rollback ()
zmq_msg_t
msg
;
while
(
pipe
->
unwrite
(
&
msg
))
{
if
(
!
(
msg
.
flags
&
ZMQ_MSG_TBC
))
{
pipe
->
write
(
msg
);
break
;
}
zmq_msg_close
(
&
msg
);
msgs_written
--
;
}
...
...
src/pipe.hpp
View file @
c42343d3
...
...
@@ -98,7 +98,7 @@ namespace zmq
// message cannot be written because high watermark was reached.
bool
write
(
zmq_msg_t
*
msg_
);
// Remove
any unflushed messages
from the pipe.
// Remove
unfinished part of a message
from the pipe.
void
rollback
();
// Flush the messages downsteam.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment