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
a8f9a0d8
Commit
a8f9a0d8
authored
May 27, 2012
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use zmq_assert rather then assert
parent
52ed4cdc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
devpoll.cpp
src/devpoll.cpp
+2
-2
poll.cpp
src/poll.cpp
+2
-2
router.cpp
src/router.cpp
+3
-3
No files found.
src/devpoll.cpp
View file @
a8f9a0d8
...
...
@@ -70,7 +70,7 @@ zmq::devpoll_t::handle_t zmq::devpoll_t::add_fd (fd_t fd_,
}
}
assert
(
!
fd_table
[
fd_
].
valid
);
zmq_
assert
(
!
fd_table
[
fd_
].
valid
);
fd_table
[
fd_
].
events
=
0
;
fd_table
[
fd_
].
reactor
=
reactor_
;
...
...
@@ -88,7 +88,7 @@ zmq::devpoll_t::handle_t zmq::devpoll_t::add_fd (fd_t fd_,
void
zmq
::
devpoll_t
::
rm_fd
(
handle_t
handle_
)
{
assert
(
fd_table
[
handle_
].
valid
);
zmq_
assert
(
fd_table
[
handle_
].
valid
);
devpoll_ctl
(
handle_
,
POLLREMOVE
);
fd_table
[
handle_
].
valid
=
false
;
...
...
src/poll.cpp
View file @
a8f9a0d8
...
...
@@ -57,7 +57,7 @@ zmq::poll_t::handle_t zmq::poll_t::add_fd (fd_t fd_, i_poll_events *events_)
pollfd
pfd
=
{
fd_
,
0
,
0
};
pollset
.
push_back
(
pfd
);
assert
(
fd_table
[
fd_
].
index
==
retired_fd
);
zmq_
assert
(
fd_table
[
fd_
].
index
==
retired_fd
);
fd_table
[
fd_
].
index
=
pollset
.
size
()
-
1
;
fd_table
[
fd_
].
events
=
events_
;
...
...
@@ -71,7 +71,7 @@ zmq::poll_t::handle_t zmq::poll_t::add_fd (fd_t fd_, i_poll_events *events_)
void
zmq
::
poll_t
::
rm_fd
(
handle_t
handle_
)
{
fd_t
index
=
fd_table
[
handle_
].
index
;
assert
(
index
!=
retired_fd
);
zmq_
assert
(
index
!=
retired_fd
);
// Mark the fd as unused.
pollset
[
index
].
fd
=
retired_fd
;
...
...
src/router.cpp
View file @
a8f9a0d8
...
...
@@ -219,8 +219,8 @@ int zmq::router_t::xrecv (msg_t *msg_, int flags_)
}
// Identity is not expected
assert
((
msg_
->
flags
()
&
msg_t
::
identity
)
==
0
);
assert
(
pipe
!=
NULL
);
zmq_
assert
((
msg_
->
flags
()
&
msg_t
::
identity
)
==
0
);
zmq_
assert
(
pipe
!=
NULL
);
// If we are in the middle of reading a message, just return the next part.
if
(
more_in
)
...
...
@@ -273,7 +273,7 @@ bool zmq::router_t::xhas_in ()
return
false
;
// Identity is not expected
assert
((
prefetched_msg
.
flags
()
&
msg_t
::
identity
)
==
0
);
zmq_
assert
((
prefetched_msg
.
flags
()
&
msg_t
::
identity
)
==
0
);
blob_t
identity
=
pipe
->
get_identity
();
rc
=
prefetched_id
.
init_size
(
identity
.
size
());
...
...
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