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
6d4ffd90
Commit
6d4ffd90
authored
Sep 07, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug in fq_t and lb_t (when used via ZMQ_EVENTS option) fixed
parent
b4740c14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
fq.cpp
src/fq.cpp
+5
-2
lb.cpp
src/lb.cpp
+3
-3
No files found.
src/fq.cpp
View file @
6d4ffd90
...
@@ -148,8 +148,11 @@ bool zmq::fq_t::has_in ()
...
@@ -148,8 +148,11 @@ bool zmq::fq_t::has_in ()
for
(
int
count
=
active
;
count
!=
0
;
count
--
)
{
for
(
int
count
=
active
;
count
!=
0
;
count
--
)
{
if
(
pipes
[
current
]
->
check_read
())
if
(
pipes
[
current
]
->
check_read
())
return
true
;
return
true
;
current
++
;
if
(
current
>=
active
)
// Deactivate the pipe.
active
--
;
pipes
.
swap
(
current
,
active
);
if
(
current
==
active
)
current
=
0
;
current
=
0
;
}
}
...
...
src/lb.cpp
View file @
6d4ffd90
...
@@ -135,10 +135,10 @@ bool zmq::lb_t::has_out ()
...
@@ -135,10 +135,10 @@ bool zmq::lb_t::has_out ()
if
(
pipes
[
current
]
->
check_write
())
if
(
pipes
[
current
]
->
check_write
())
return
true
;
return
true
;
// Deactivate the pipe.
active
--
;
active
--
;
if
(
current
<
active
)
pipes
.
swap
(
current
,
active
);
pipes
.
swap
(
current
,
active
);
if
(
current
==
active
)
else
current
=
0
;
current
=
0
;
}
}
...
...
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