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
8b9bd057
Commit
8b9bd057
authored
May 03, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
thread ID and dispatcher made private in object_t
parent
84e0c799
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
app_thread.cpp
src/app_thread.cpp
+3
-3
io_thread.cpp
src/io_thread.cpp
+1
-1
object.hpp
src/object.hpp
+2
-2
No files found.
src/app_thread.cpp
View file @
8b9bd057
...
...
@@ -123,7 +123,7 @@ bool zmq::app_thread_t::process_commands (bool block_, bool throttle_)
// Process all the commands from the signaling source if there is one.
if
(
signal
!=
signaler_t
::
no_signal
)
{
command_t
cmd
;
while
(
dispatcher
->
read
(
signal
,
get_thread_slot
(),
&
cmd
))
while
(
get_dispatcher
()
->
read
(
signal
,
get_thread_slot
(),
&
cmd
))
cmd
.
destination
->
process_command
(
cmd
);
}
...
...
@@ -163,7 +163,7 @@ zmq::socket_base_t *zmq::app_thread_t::create_socket (int type_)
break
;
default
:
if
(
sockets
.
empty
())
dispatcher
->
no_sockets
(
this
);
get_dispatcher
()
->
no_sockets
(
this
);
errno
=
EINVAL
;
return
NULL
;
}
...
...
@@ -178,7 +178,7 @@ void zmq::app_thread_t::remove_socket (socket_base_t *socket_)
{
sockets
.
erase
(
socket_
);
if
(
sockets
.
empty
())
dispatcher
->
no_sockets
(
this
);
get_dispatcher
()
->
no_sockets
(
this
);
}
void
zmq
::
app_thread_t
::
process_stop
()
...
...
src/io_thread.cpp
View file @
8b9bd057
...
...
@@ -76,7 +76,7 @@ void zmq::io_thread_t::in_event ()
// Process all the commands from the thread that sent the signal.
command_t
cmd
;
while
(
dispatcher
->
read
(
signal
,
thread_slot
,
&
cmd
))
while
(
get_dispatcher
()
->
read
(
signal
,
get_thread_slot
()
,
&
cmd
))
cmd
.
destination
->
process_command
(
cmd
);
}
}
...
...
src/object.hpp
View file @
8b9bd057
...
...
@@ -99,14 +99,14 @@ namespace zmq
// of processed commands here.
virtual
void
process_seqnum
();
private
:
// Pointer to the root of the infrastructure.
class
dispatcher_t
*
dispatcher
;
// Slot ID of the thread the object belongs to.
uint32_t
thread_slot
;
private
:
void
send_command
(
command_t
&
cmd_
);
object_t
(
const
object_t
&
);
...
...
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