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;131 struct io_event ioevs[AIO_BUFS_MAX]; in doAsync()135 size_t this_len = std::min(len - total, static_cast<size_t>(AIO_BUF_LEN * AIO_BUFS_MAX)); in doAsync()156 for (unsigned i = 0; i < AIO_BUFS_MAX; i++) { in doAsync()272 mIobuf[i].iocb.resize(AIO_BUFS_MAX); in start()273 mIobuf[i].iocbs.resize(AIO_BUFS_MAX); in start()274 mIobuf[i].buf.resize(AIO_BUFS_MAX); in start()275 for (unsigned j = 0; j < AIO_BUFS_MAX; j++) { in start()282 if (io_setup(AIO_BUFS_MAX, &mCtx) < 0) { in start()[all …]