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
4a3b4dad
Commit
4a3b4dad
authored
Oct 02, 2009
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZMQII-9: Check and implement speculative reads & writes
parent
49a9ef5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ypollset.cpp
src/ypollset.cpp
+0
-1
zmq_engine.cpp
src/zmq_engine.cpp
+6
-0
No files found.
src/ypollset.cpp
View file @
4a3b4dad
...
...
@@ -29,7 +29,6 @@ zmq::ypollset_t::~ypollset_t ()
void
zmq
::
ypollset_t
::
signal
(
int
signal_
)
{
printf
(
"++signal
\n
"
);
zmq_assert
(
signal_
>=
0
&&
signal_
<
wait_signal
);
if
(
bits
.
btsr
(
signal_
,
wait_signal
))
sem
.
post
();
...
...
src/zmq_engine.cpp
View file @
4a3b4dad
...
...
@@ -137,6 +137,12 @@ void zmq::zmq_engine_t::out_event ()
void
zmq
::
zmq_engine_t
::
revive
()
{
set_pollout
(
handle
);
// Speculative write: The assumption is that at the moment new message
// was sent by the user the socket is probably available for writing.
// Thus we try to write the data to socket avoiding polling for POLLOUT.
// Consequently, the latency should be better in request/reply scenarios.
out_event
();
}
void
zmq
::
zmq_engine_t
::
error
()
...
...
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