htsThreadPool

A combined thread pool and queue allocation size. The pool should already be defined, but qsize may be zero to indicate an appropriate queue size is taken from the pool.

Reasons for explicitly setting it could be where many more file descriptors are in use than threads, so keeping memory low is important.

extern (C)
struct htsThreadPool {}

Members

Variables

pool
hts_tpool* pool;

The shared thread pool itself

qsize
int qsize;

Size of I/O queue to use for this fp

Meta