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
d72ceb93
Commit
d72ceb93
authored
Jan 08, 2014
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it explicit that the probe function doesn't modify passed message
parent
62922188
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
dbuffer.hpp
src/dbuffer.hpp
+1
-1
msg.cpp
src/msg.cpp
+1
-1
msg.hpp
src/msg.hpp
+1
-1
pipe.cpp
src/pipe.cpp
+1
-1
pipe.hpp
src/pipe.hpp
+1
-1
ypipe.hpp
src/ypipe.hpp
+1
-1
ypipe_base.hpp
src/ypipe_base.hpp
+1
-1
ypipe_conflate.hpp
src/ypipe_conflate.hpp
+1
-1
No files found.
src/dbuffer.hpp
View file @
d72ceb93
...
...
@@ -111,7 +111,7 @@ namespace zmq
return
has_msg
;
}
inline
bool
probe
(
bool
(
*
fn
)(
msg_t
&
))
inline
bool
probe
(
bool
(
*
fn
)(
const
msg_t
&
))
{
scoped_lock_t
lock
(
sync
);
return
(
*
fn
)
(
*
front
);
...
...
src/msg.cpp
View file @
d72ceb93
...
...
@@ -267,7 +267,7 @@ bool zmq::msg_t::is_identity () const
return
(
u
.
base
.
flags
&
identity
)
==
identity
;
}
bool
zmq
::
msg_t
::
is_delimiter
()
bool
zmq
::
msg_t
::
is_delimiter
()
const
{
return
u
.
base
.
type
==
type_delimiter
;
}
...
...
src/msg.hpp
View file @
d72ceb93
...
...
@@ -70,7 +70,7 @@ namespace zmq
int64_t
fd
();
void
set_fd
(
int64_t
fd_
);
bool
is_identity
()
const
;
bool
is_delimiter
();
bool
is_delimiter
()
const
;
bool
is_vsm
();
bool
is_cmsg
();
...
...
src/pipe.cpp
View file @
d72ceb93
...
...
@@ -406,7 +406,7 @@ void zmq::pipe_t::terminate (bool delay_)
}
}
bool
zmq
::
pipe_t
::
is_delimiter
(
msg_t
&
msg_
)
bool
zmq
::
pipe_t
::
is_delimiter
(
const
msg_t
&
msg_
)
{
return
msg_
.
is_delimiter
();
}
...
...
src/pipe.hpp
View file @
d72ceb93
...
...
@@ -199,7 +199,7 @@ namespace zmq
blob_t
identity
;
// Returns true if the message is delimiter; false otherwise.
static
bool
is_delimiter
(
msg_t
&
msg_
);
static
bool
is_delimiter
(
const
msg_t
&
msg_
);
// Computes appropriate low watermark from the given high watermark.
static
int
compute_lwm
(
int
hwm_
);
...
...
src/ypipe.hpp
View file @
d72ceb93
...
...
@@ -166,7 +166,7 @@ namespace zmq
// Applies the function fn to the first elemenent in the pipe
// and returns the value returned by the fn.
// The pipe mustn't be empty or the function crashes.
inline
bool
probe
(
bool
(
*
fn
)(
T
&
))
inline
bool
probe
(
bool
(
*
fn
)(
const
T
&
))
{
bool
rc
=
check_read
();
zmq_assert
(
rc
);
...
...
src/ypipe_base.hpp
View file @
d72ceb93
...
...
@@ -37,7 +37,7 @@ namespace zmq
virtual
bool
flush
()
=
0
;
virtual
bool
check_read
()
=
0
;
virtual
bool
read
(
T
*
value_
)
=
0
;
virtual
bool
probe
(
bool
(
*
fn
)(
T
&
))
=
0
;
virtual
bool
probe
(
bool
(
*
fn
)(
const
T
&
))
=
0
;
};
}
...
...
src/ypipe_conflate.hpp
View file @
d72ceb93
...
...
@@ -107,7 +107,7 @@ namespace zmq
// Applies the function fn to the first elemenent in the pipe
// and returns the value returned by the fn.
// The pipe mustn't be empty or the function crashes.
inline
bool
probe
(
bool
(
*
fn
)(
T
&
))
inline
bool
probe
(
bool
(
*
fn
)(
const
T
&
))
{
return
dbuffer
.
probe
(
fn
);
}
...
...
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