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
ecb97709
Commit
ecb97709
authored
Jan 06, 2014
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #809 from hurtonm/master
Simplify ypipe_t and ypipe_base_t template parameters
parents
c7e3efba
96f5fddc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
pipe.cpp
src/pipe.cpp
+2
-2
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/pipe.cpp
View file @
ecb97709
...
...
@@ -33,7 +33,7 @@ int zmq::pipepair (class object_t *parents_ [2], class pipe_t* pipes_ [2],
// each to pass messages in one direction.
typedef
ypipe_t
<
msg_t
,
message_pipe_granularity
>
upipe_normal_t
;
typedef
ypipe_conflate_t
<
msg_t
,
message_pipe_granularity
>
upipe_conflate_t
;
typedef
ypipe_conflate_t
<
msg_t
>
upipe_conflate_t
;
pipe_t
::
upipe_t
*
upipe1
;
if
(
conflate_
[
0
])
...
...
@@ -469,7 +469,7 @@ void zmq::pipe_t::hiccup ()
ypipe_t
<
msg_t
,
message_pipe_granularity
>
();
else
inpipe
=
new
(
std
::
nothrow
)
ypipe_conflate_t
<
msg_t
,
message_pipe_granularity
>
();
ypipe_conflate_t
<
msg_t
>
();
alloc_assert
(
inpipe
);
in_active
=
true
;
...
...
src/pipe.hpp
View file @
ecb97709
...
...
@@ -118,7 +118,7 @@ namespace zmq
private
:
// Type of the underlying lock-free pipe.
typedef
ypipe_base_t
<
msg_t
,
message_pipe_granularity
>
upipe_t
;
typedef
ypipe_base_t
<
msg_t
>
upipe_t
;
// Command handlers.
void
process_activate_read
();
...
...
src/ypipe.hpp
View file @
ecb97709
...
...
@@ -35,7 +35,7 @@ namespace zmq
// N is granularity of the pipe, i.e. how many items are needed to
// perform next memory allocation.
template
<
typename
T
,
int
N
>
class
ypipe_t
:
public
ypipe_base_t
<
T
,
N
>
template
<
typename
T
,
int
N
>
class
ypipe_t
:
public
ypipe_base_t
<
T
>
{
public
:
...
...
src/ypipe_base.hpp
View file @
ecb97709
...
...
@@ -28,7 +28,7 @@ namespace zmq
// classes, one is selected according to a the conflate
// socket option
template
<
typename
T
,
int
N
>
class
ypipe_base_t
template
<
typename
T
>
class
ypipe_base_t
{
public
:
virtual
~
ypipe_base_t
()
{}
...
...
src/ypipe_conflate.hpp
View file @
ecb97709
...
...
@@ -34,7 +34,7 @@ namespace zmq
// reader_awake flag is needed here to mimic ypipe delicate behaviour
// around the reader being asleep (see 'c' pointer being NULL in ypipe.hpp)
template
<
typename
T
,
int
N
>
class
ypipe_conflate_t
:
public
ypipe_base_t
<
T
,
N
>
template
<
typename
T
>
class
ypipe_conflate_t
:
public
ypipe_base_t
<
T
>
{
public
:
...
...
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