File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ Christian Gudrian
35
35
Christian Kamm
36
36
Chuck Remes
37
37
Conrad D. Steenberg
38
+ Constantin Rack
38
39
Dhammika Pathirana
39
40
Dhruva Krishnamurthy
40
41
Dirk O. Kaar
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ bool zmq::pipe_t::check_write ()
206
206
if (unlikely (!out_active || state != active))
207
207
return false ;
208
208
209
- bool full = hwm > 0 && msgs_written - peers_msgs_read == uint64_t (hwm );
209
+ bool full = ! check_hwm ( );
210
210
211
211
if (unlikely (full)) {
212
212
out_active = false ;
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ namespace zmq
121
121
// in the peer.
122
122
void hiccup ();
123
123
124
- // Ensure the pipe wont block on receiving pipe_term.
124
+ // Ensure the pipe won't block on receiving pipe_term.
125
125
void set_nodelay ();
126
126
127
127
// Ask pipe to terminate. The termination will happen asynchronously
@@ -130,13 +130,13 @@ namespace zmq
130
130
// before actual shutdown.
131
131
void terminate (bool delay_);
132
132
133
- // set the high water marks.
133
+ // Set the high water marks.
134
134
void set_hwms (int inhwm_, int outhwm_);
135
135
136
- // set the boost to high water marks, used by inproc sockets so total hwm are sum of connect and bind sockets watermarks
136
+ // Set the boost to high water marks, used by inproc sockets so total hwm are sum of connect and bind sockets watermarks
137
137
void set_hwms_boost (int inhwmboost_, int outhwmboost_);
138
138
139
- // check HWM
139
+ // Returns true if HWM is not reached
140
140
bool check_hwm () const ;
141
141
private:
142
142
You can’t perform that action at this time.
0 commit comments