Home
last modified time | relevance | path

Searched refs:max_chunks (Results 1 – 3 of 3) sorted by relevance

/curl/lib/
H A Dbufq.c234 DEBUGASSERT(max_chunks > 0); in bufq_init()
237 q->max_chunks = max_chunks; in bufq_init()
245 bufq_init(q, NULL, chunk_size, max_chunks, opts); in Curl_bufq_init2()
254 size_t max_chunks, int opts) in Curl_bufq_initp() argument
302 if(q->chunk_count < q->max_chunks) { in Curl_bufq_space()
317 if(q->chunk_count < q->max_chunks) in Curl_bufq_is_full()
319 if(q->chunk_count > q->max_chunks) in Curl_bufq_is_full()
368 else if((q->chunk_count > q->max_chunks) || in prune_head()
411 else if((q->chunk_count > q->max_chunks) || in prune_tail()
455 DEBUGASSERT(q->max_chunks > 0); in Curl_bufq_write()
[all …]
H A Dbufq.h100 size_t max_chunks; /* max `head` chunks to use */ member
125 void Curl_bufq_init(struct bufq *q, size_t chunk_size, size_t max_chunks);
132 size_t max_chunks, int opts);
135 size_t max_chunks, int opts);
/curl/tests/unit/
H A Dunit2601.c68 q->chunk_size, q->max_chunks, msg); in dump_bufq()
92 size_t chunk_size, size_t max_chunks, in check_bufq() argument
97 size_t max_len = chunk_size * max_chunks; in check_bufq()
104 Curl_bufq_initp(&q, &pool, max_chunks, opts); in check_bufq()
107 Curl_bufq_init2(&q, chunk_size, max_chunks, opts); in check_bufq()
111 fail_unless(q.max_chunks == max_chunks, "max_chunks init wrong"); in check_bufq()
180 Curl_bufq_init2(&q, chunk_size, max_chunks, (opts|BUFQ_OPT_SOFT_LIMIT)); in check_bufq()

Completed in 17 milliseconds