Home
last modified time | relevance | path

Searched refs:at_most (Results 1 – 5 of 5) sorted by relevance

/external/libevent/
Dbuffer_iocp.c172 evbuffer_launch_write_(struct evbuffer *buf, ev_ssize_t at_most, in evbuffer_launch_write_() argument
194 } else if (at_most < 0 || (size_t)at_most > buf->total_len) { in evbuffer_launch_write_()
195 at_most = buf->total_len; in evbuffer_launch_write_()
210 if ((size_t)at_most > chain->off) { in evbuffer_launch_write_()
216 at_most -= chain->off; in evbuffer_launch_write_()
218 b->len = (unsigned long)at_most; in evbuffer_launch_write_()
246 evbuffer_launch_read_(struct evbuffer *buf, size_t at_most, in evbuffer_launch_read_() argument
269 if (evbuffer_expand_fast_(buf, at_most, MAX_WSABUFS) == -1) in evbuffer_launch_read_()
273 nvecs = evbuffer_read_setup_vecs_(buf, at_most, in evbuffer_launch_read_()
Dbufferevent_async.c209 size_t at_most; in bev_async_consider_writing() local
223 at_most = evbuffer_get_length(bev->output); in bev_async_consider_writing()
228 if (at_most >= (size_t)limit && limit >= 0) in bev_async_consider_writing()
229 at_most = limit; in bev_async_consider_writing()
238 if (evbuffer_launch_write_(bev->output, at_most, in bev_async_consider_writing()
244 beva->write_in_progress = at_most; in bev_async_consider_writing()
245 bufferevent_decrement_write_buckets_(&beva->bev, at_most); in bev_async_consider_writing()
255 size_t at_most; in bev_async_consider_reading() local
276 at_most = read_high - cur_size; in bev_async_consider_reading()
278 at_most = 16384; /* FIXME totally magic. */ in bev_async_consider_reading()
[all …]
/external/rust/crates/tokio/src/runtime/tests/
Dloom_basic_scheduler.rs50 let at_most = 3; in block_on_num_polls() localVariable
56 let th1 = thread::spawn(move || assert_at_most_num_polls(rt1, at_most)); in block_on_num_polls()
57 let th2 = thread::spawn(move || assert_at_most_num_polls(rt2, at_most)); in block_on_num_polls()
58 let th3 = thread::spawn(move || assert_at_most_num_polls(rt3, at_most)); in block_on_num_polls()
/external/antlr/runtime/Ruby/lib/antlr3/
Dutil.rb123 def at_most( x ) method in Integer
Dstreams.rb1083 stop = stop.to_i.at_most( @tokens.length )