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
c3e40736
Commit
c3e40736
authored
May 28, 2013
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename terminated->pipe_terminated
parent
7a43c02a
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
36 additions
and
36 deletions
+36
-36
dealer.cpp
src/dealer.cpp
+3
-3
dealer.hpp
src/dealer.hpp
+1
-1
dist.cpp
src/dist.cpp
+1
-1
dist.hpp
src/dist.hpp
+1
-1
fq.cpp
src/fq.cpp
+1
-1
fq.hpp
src/fq.hpp
+1
-1
lb.cpp
src/lb.cpp
+1
-1
lb.hpp
src/lb.hpp
+1
-1
pair.cpp
src/pair.cpp
+1
-1
pair.hpp
src/pair.hpp
+1
-1
pipe.cpp
src/pipe.cpp
+1
-1
pipe.hpp
src/pipe.hpp
+1
-1
pull.cpp
src/pull.cpp
+2
-2
pull.hpp
src/pull.hpp
+1
-1
push.cpp
src/push.cpp
+2
-2
push.hpp
src/push.hpp
+1
-1
router.cpp
src/router.cpp
+2
-2
router.hpp
src/router.hpp
+1
-1
session_base.cpp
src/session_base.cpp
+1
-1
session_base.hpp
src/session_base.hpp
+1
-1
socket_base.cpp
src/socket_base.cpp
+2
-2
socket_base.hpp
src/socket_base.hpp
+2
-2
xpub.cpp
src/xpub.cpp
+2
-2
xpub.hpp
src/xpub.hpp
+1
-1
xsub.cpp
src/xsub.cpp
+3
-3
xsub.hpp
src/xsub.hpp
+1
-1
No files found.
src/dealer.cpp
View file @
c3e40736
...
...
@@ -108,10 +108,10 @@ void zmq::dealer_t::xwrite_activated (pipe_t *pipe_)
lb
.
activated
(
pipe_
);
}
void
zmq
::
dealer_t
::
xterminated
(
pipe_t
*
pipe_
)
void
zmq
::
dealer_t
::
x
pipe_
terminated
(
pipe_t
*
pipe_
)
{
fq
.
terminated
(
pipe_
);
lb
.
terminated
(
pipe_
);
fq
.
pipe_
terminated
(
pipe_
);
lb
.
pipe_
terminated
(
pipe_
);
}
zmq
::
dealer_session_t
::
dealer_session_t
(
io_thread_t
*
io_thread_
,
bool
connect_
,
...
...
src/dealer.hpp
View file @
c3e40736
...
...
@@ -53,7 +53,7 @@ namespace zmq
bool
xhas_out
();
void
xread_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xwrite_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xterminated
(
zmq
::
pipe_t
*
pipe_
);
void
x
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
private
:
...
...
src/dist.cpp
View file @
c3e40736
...
...
@@ -74,7 +74,7 @@ void zmq::dist_t::unmatch ()
matching
=
0
;
}
void
zmq
::
dist_t
::
terminated
(
pipe_t
*
pipe_
)
void
zmq
::
dist_t
::
pipe_
terminated
(
pipe_t
*
pipe_
)
{
// Remove the pipe from the list; adjust number of matching, active and/or
// eligible pipes accordingly.
...
...
src/dist.hpp
View file @
c3e40736
...
...
@@ -54,7 +54,7 @@ namespace zmq
void
unmatch
();
// Removes the pipe from the distributor object.
void
terminated
(
zmq
::
pipe_t
*
pipe_
);
void
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
// Send the message to the matching outbound pipes.
int
send_to_matching
(
zmq
::
msg_t
*
msg_
);
...
...
src/fq.cpp
View file @
c3e40736
...
...
@@ -41,7 +41,7 @@ void zmq::fq_t::attach (pipe_t *pipe_)
active
++
;
}
void
zmq
::
fq_t
::
terminated
(
pipe_t
*
pipe_
)
void
zmq
::
fq_t
::
pipe_
terminated
(
pipe_t
*
pipe_
)
{
const
pipes_t
::
size_type
index
=
pipes
.
index
(
pipe_
);
...
...
src/fq.hpp
View file @
c3e40736
...
...
@@ -40,7 +40,7 @@ namespace zmq
void
attach
(
pipe_t
*
pipe_
);
void
activated
(
pipe_t
*
pipe_
);
void
terminated
(
pipe_t
*
pipe_
);
void
pipe_
terminated
(
pipe_t
*
pipe_
);
int
recv
(
msg_t
*
msg_
);
int
recvpipe
(
msg_t
*
msg_
,
pipe_t
**
pipe_
);
...
...
src/lb.cpp
View file @
c3e40736
...
...
@@ -41,7 +41,7 @@ void zmq::lb_t::attach (pipe_t *pipe_)
activated
(
pipe_
);
}
void
zmq
::
lb_t
::
terminated
(
pipe_t
*
pipe_
)
void
zmq
::
lb_t
::
pipe_
terminated
(
pipe_t
*
pipe_
)
{
pipes_t
::
size_type
index
=
pipes
.
index
(
pipe_
);
...
...
src/lb.hpp
View file @
c3e40736
...
...
@@ -38,7 +38,7 @@ namespace zmq
void
attach
(
pipe_t
*
pipe_
);
void
activated
(
pipe_t
*
pipe_
);
void
terminated
(
pipe_t
*
pipe_
);
void
pipe_
terminated
(
pipe_t
*
pipe_
);
int
send
(
msg_t
*
msg_
);
bool
has_out
();
...
...
src/pair.cpp
View file @
c3e40736
...
...
@@ -49,7 +49,7 @@ void zmq::pair_t::xattach_pipe (pipe_t *pipe_, bool icanhasall_)
pipe_
->
terminate
(
false
);
}
void
zmq
::
pair_t
::
xterminated
(
pipe_t
*
pipe_
)
void
zmq
::
pair_t
::
x
pipe_
terminated
(
pipe_t
*
pipe_
)
{
if
(
pipe_
==
pipe
)
pipe
=
NULL
;
...
...
src/pair.hpp
View file @
c3e40736
...
...
@@ -47,7 +47,7 @@ namespace zmq
bool
xhas_out
();
void
xread_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xwrite_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xterminated
(
zmq
::
pipe_t
*
pipe_
);
void
x
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
private
:
...
...
src/pipe.cpp
View file @
c3e40736
...
...
@@ -285,7 +285,7 @@ void zmq::pipe_t::process_pipe_term_ack ()
{
// Notify the user that all the references to the pipe should be dropped.
zmq_assert
(
sink
);
sink
->
terminated
(
this
);
sink
->
pipe_
terminated
(
this
);
// In term_ack_sent and term_req_sent2 states there's nothing to do.
// Simply deallocate the pipe. In term_req_sent1 state we have to ack
...
...
src/pipe.hpp
View file @
c3e40736
...
...
@@ -50,7 +50,7 @@ namespace zmq
virtual
void
read_activated
(
zmq
::
pipe_t
*
pipe_
)
=
0
;
virtual
void
write_activated
(
zmq
::
pipe_t
*
pipe_
)
=
0
;
virtual
void
hiccuped
(
zmq
::
pipe_t
*
pipe_
)
=
0
;
virtual
void
terminated
(
zmq
::
pipe_t
*
pipe_
)
=
0
;
virtual
void
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
)
=
0
;
};
// Note that pipe can be stored in three different arrays.
...
...
src/pull.cpp
View file @
c3e40736
...
...
@@ -46,9 +46,9 @@ void zmq::pull_t::xread_activated (pipe_t *pipe_)
fq
.
activated
(
pipe_
);
}
void
zmq
::
pull_t
::
xterminated
(
pipe_t
*
pipe_
)
void
zmq
::
pull_t
::
x
pipe_
terminated
(
pipe_t
*
pipe_
)
{
fq
.
terminated
(
pipe_
);
fq
.
pipe_
terminated
(
pipe_
);
}
int
zmq
::
pull_t
::
xrecv
(
msg_t
*
msg_
)
...
...
src/pull.hpp
View file @
c3e40736
...
...
@@ -47,7 +47,7 @@ namespace zmq
int
xrecv
(
zmq
::
msg_t
*
msg_
);
bool
xhas_in
();
void
xread_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xterminated
(
zmq
::
pipe_t
*
pipe_
);
void
x
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
private
:
...
...
src/push.cpp
View file @
c3e40736
...
...
@@ -46,9 +46,9 @@ void zmq::push_t::xwrite_activated (pipe_t *pipe_)
lb
.
activated
(
pipe_
);
}
void
zmq
::
push_t
::
xterminated
(
pipe_t
*
pipe_
)
void
zmq
::
push_t
::
x
pipe_
terminated
(
pipe_t
*
pipe_
)
{
lb
.
terminated
(
pipe_
);
lb
.
pipe_
terminated
(
pipe_
);
}
int
zmq
::
push_t
::
xsend
(
msg_t
*
msg_
)
...
...
src/push.hpp
View file @
c3e40736
...
...
@@ -47,7 +47,7 @@ namespace zmq
int
xsend
(
zmq
::
msg_t
*
msg_
);
bool
xhas_out
();
void
xwrite_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xterminated
(
zmq
::
pipe_t
*
pipe_
);
void
x
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
private
:
...
...
src/router.cpp
View file @
c3e40736
...
...
@@ -106,7 +106,7 @@ int zmq::router_t::xsetsockopt (int option_, const void *optval_,
}
void
zmq
::
router_t
::
xterminated
(
pipe_t
*
pipe_
)
void
zmq
::
router_t
::
x
pipe_
terminated
(
pipe_t
*
pipe_
)
{
std
::
set
<
pipe_t
*>::
iterator
it
=
anonymous_pipes
.
find
(
pipe_
);
if
(
it
!=
anonymous_pipes
.
end
())
...
...
@@ -115,7 +115,7 @@ void zmq::router_t::xterminated (pipe_t *pipe_)
outpipes_t
::
iterator
it
=
outpipes
.
find
(
pipe_
->
get_identity
());
zmq_assert
(
it
!=
outpipes
.
end
());
outpipes
.
erase
(
it
);
fq
.
terminated
(
pipe_
);
fq
.
pipe_
terminated
(
pipe_
);
if
(
pipe_
==
current_out
)
current_out
=
NULL
;
}
...
...
src/router.hpp
View file @
c3e40736
...
...
@@ -53,7 +53,7 @@ namespace zmq
bool
xhas_out
();
void
xread_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xwrite_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xterminated
(
zmq
::
pipe_t
*
pipe_
);
void
x
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
protected
:
...
...
src/session_base.cpp
View file @
c3e40736
...
...
@@ -197,7 +197,7 @@ void zmq::session_base_t::clean_pipes ()
}
}
void
zmq
::
session_base_t
::
terminated
(
pipe_t
*
pipe_
)
void
zmq
::
session_base_t
::
pipe_
terminated
(
pipe_t
*
pipe_
)
{
// Drop the reference to the deallocated pipe if required.
zmq_assert
(
pipe
==
pipe_
||
terminating_pipes
.
count
(
pipe_
)
==
1
);
...
...
src/session_base.hpp
View file @
c3e40736
...
...
@@ -61,7 +61,7 @@ namespace zmq
void
read_activated
(
zmq
::
pipe_t
*
pipe_
);
void
write_activated
(
zmq
::
pipe_t
*
pipe_
);
void
hiccuped
(
zmq
::
pipe_t
*
pipe_
);
void
terminated
(
zmq
::
pipe_t
*
pipe_
);
void
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
// Delivers a message. Returns 0 if successful; -1 otherwise.
// The function takes ownership of the message.
...
...
src/socket_base.cpp
View file @
c3e40736
...
...
@@ -1003,10 +1003,10 @@ void zmq::socket_base_t::hiccuped (pipe_t *pipe_)
xhiccuped
(
pipe_
);
}
void
zmq
::
socket_base_t
::
terminated
(
pipe_t
*
pipe_
)
void
zmq
::
socket_base_t
::
pipe_
terminated
(
pipe_t
*
pipe_
)
{
// Notify the specific socket type about the pipe termination.
xterminated
(
pipe_
);
x
pipe_
terminated
(
pipe_
);
// Remove pipe from inproc pipes
for
(
inprocs_t
::
iterator
it
=
inprocs
.
begin
();
it
!=
inprocs
.
end
();
++
it
)
{
...
...
src/socket_base.hpp
View file @
c3e40736
...
...
@@ -100,7 +100,7 @@ namespace zmq
void
read_activated
(
pipe_t
*
pipe_
);
void
write_activated
(
pipe_t
*
pipe_
);
void
hiccuped
(
pipe_t
*
pipe_
);
void
terminated
(
pipe_t
*
pipe_
);
void
pipe_
terminated
(
pipe_t
*
pipe_
);
void
lock
();
void
unlock
();
...
...
@@ -145,7 +145,7 @@ namespace zmq
virtual
void
xread_activated
(
pipe_t
*
pipe_
);
virtual
void
xwrite_activated
(
pipe_t
*
pipe_
);
virtual
void
xhiccuped
(
pipe_t
*
pipe_
);
virtual
void
xterminated
(
pipe_t
*
pipe_
)
=
0
;
virtual
void
x
pipe_
terminated
(
pipe_t
*
pipe_
)
=
0
;
// Delay actual destruction of the socket.
void
process_destroy
();
...
...
src/xpub.cpp
View file @
c3e40736
...
...
@@ -102,14 +102,14 @@ int zmq::xpub_t::xsetsockopt (int option_, const void *optval_,
return
0
;
}
void
zmq
::
xpub_t
::
xterminated
(
pipe_t
*
pipe_
)
void
zmq
::
xpub_t
::
x
pipe_
terminated
(
pipe_t
*
pipe_
)
{
// Remove the pipe from the trie. If there are topics that nobody
// is interested in anymore, send corresponding unsubscriptions
// upstream.
subscriptions
.
rm
(
pipe_
,
send_unsubscription
,
this
);
dist
.
terminated
(
pipe_
);
dist
.
pipe_
terminated
(
pipe_
);
}
void
zmq
::
xpub_t
::
mark_as_matching
(
pipe_t
*
pipe_
,
void
*
arg_
)
...
...
src/xpub.hpp
View file @
c3e40736
...
...
@@ -54,7 +54,7 @@ namespace zmq
void
xread_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xwrite_activated
(
zmq
::
pipe_t
*
pipe_
);
int
xsetsockopt
(
int
option_
,
const
void
*
optval_
,
size_t
optvallen_
);
void
xterminated
(
zmq
::
pipe_t
*
pipe_
);
void
x
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
private
:
...
...
src/xsub.cpp
View file @
c3e40736
...
...
@@ -67,10 +67,10 @@ void zmq::xsub_t::xwrite_activated (pipe_t *pipe_)
dist
.
activated
(
pipe_
);
}
void
zmq
::
xsub_t
::
xterminated
(
pipe_t
*
pipe_
)
void
zmq
::
xsub_t
::
x
pipe_
terminated
(
pipe_t
*
pipe_
)
{
fq
.
terminated
(
pipe_
);
dist
.
terminated
(
pipe_
);
fq
.
pipe_
terminated
(
pipe_
);
dist
.
pipe_
terminated
(
pipe_
);
}
void
zmq
::
xsub_t
::
xhiccuped
(
pipe_t
*
pipe_
)
...
...
src/xsub.hpp
View file @
c3e40736
...
...
@@ -52,7 +52,7 @@ namespace zmq
void
xread_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xwrite_activated
(
zmq
::
pipe_t
*
pipe_
);
void
xhiccuped
(
pipe_t
*
pipe_
);
void
xterminated
(
zmq
::
pipe_t
*
pipe_
);
void
x
pipe_
terminated
(
zmq
::
pipe_t
*
pipe_
);
private
:
...
...
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