Searched refs:AIO_BUFS_MAX (Results 1 – 1 of 1) sorted by relevance
42 constexpr unsigned AIO_BUFS_MAX = 128; variable47 constexpr unsigned MAX_FILE_CHUNK_SIZE = AIO_BUFS_MAX * AIO_BUF_LEN;134 struct io_event ioevs[AIO_BUFS_MAX]; in doAsync()138 size_t this_len = std::min(len - total, static_cast<size_t>(AIO_BUF_LEN * AIO_BUFS_MAX)); in doAsync()159 for (unsigned i = 0; i < AIO_BUFS_MAX; i++) { in doAsync()274 mIobuf[i].iocb.resize(AIO_BUFS_MAX); in start()275 mIobuf[i].iocbs.resize(AIO_BUFS_MAX); in start()276 mIobuf[i].buf.resize(AIO_BUFS_MAX); in start()277 for (unsigned j = 0; j < AIO_BUFS_MAX; j++) { in start()284 if (io_setup(AIO_BUFS_MAX, &mCtx) < 0) { in start()[all …]