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
89ff277b
Commit
89ff277b
authored
May 31, 2012
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lb: code cleanup
parent
4e7be102
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
lb.cpp
src/lb.cpp
+3
-5
No files found.
src/lb.cpp
View file @
89ff277b
...
...
@@ -78,8 +78,7 @@ int zmq::lb_t::send (msg_t *msg_, int flags_)
if
(
dropping
)
{
more
=
msg_
->
flags
()
&
msg_t
::
more
?
true
:
false
;
if
(
!
more
)
dropping
=
false
;
dropping
=
more
;
int
rc
=
msg_
->
close
();
errno_assert
(
rc
==
0
);
...
...
@@ -89,10 +88,8 @@ int zmq::lb_t::send (msg_t *msg_, int flags_)
}
while
(
active
>
0
)
{
if
(
pipes
[
current
]
->
write
(
msg_
))
{
more
=
msg_
->
flags
()
&
msg_t
::
more
?
true
:
false
;
if
(
pipes
[
current
]
->
write
(
msg_
))
break
;
}
zmq_assert
(
!
more
);
active
--
;
...
...
@@ -110,6 +107,7 @@ int zmq::lb_t::send (msg_t *msg_, int flags_)
// If it's final part of the message we can fluch it downstream and
// continue round-robinning (load balance).
more
=
msg_
->
flags
()
&
msg_t
::
more
?
true
:
false
;
if
(
!
more
)
{
pipes
[
current
]
->
flush
();
current
=
(
current
+
1
)
%
active
;
...
...
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