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
f1358c12
Commit
f1358c12
authored
Sep 25, 2015
by
Constantin Rack
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: duplicate code for hwm check
parent
dd6bb9ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
AUTHORS
AUTHORS
+1
-0
pipe.cpp
src/pipe.cpp
+1
-1
pipe.hpp
src/pipe.hpp
+4
-4
No files found.
AUTHORS
View file @
f1358c12
...
...
@@ -35,6 +35,7 @@ Christian Gudrian
Christian Kamm
Chuck Remes
Conrad D. Steenberg
Constantin Rack
Dhammika Pathirana
Dhruva Krishnamurthy
Dirk O. Kaar
...
...
src/pipe.cpp
View file @
f1358c12
...
...
@@ -206,7 +206,7 @@ bool zmq::pipe_t::check_write ()
if
(
unlikely
(
!
out_active
||
state
!=
active
))
return
false
;
bool
full
=
hwm
>
0
&&
msgs_written
-
peers_msgs_read
==
uint64_t
(
hwm
);
bool
full
=
!
check_hwm
(
);
if
(
unlikely
(
full
))
{
out_active
=
false
;
...
...
src/pipe.hpp
View file @
f1358c12
...
...
@@ -121,7 +121,7 @@ namespace zmq
// in the peer.
void
hiccup
();
//
Ensure the pipe won
t block on receiving pipe_term.
//
Ensure the pipe won'
t block on receiving pipe_term.
void
set_nodelay
();
// Ask pipe to terminate. The termination will happen asynchronously
...
...
@@ -130,13 +130,13 @@ namespace zmq
// before actual shutdown.
void
terminate
(
bool
delay_
);
//
s
et the high water marks.
//
S
et the high water marks.
void
set_hwms
(
int
inhwm_
,
int
outhwm_
);
//
s
et the boost to high water marks, used by inproc sockets so total hwm are sum of connect and bind sockets watermarks
//
S
et the boost to high water marks, used by inproc sockets so total hwm are sum of connect and bind sockets watermarks
void
set_hwms_boost
(
int
inhwmboost_
,
int
outhwmboost_
);
//
check HWM
//
Returns true if HWM is not reached
bool
check_hwm
()
const
;
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