Add io_uring_wait_cqe_timeout()

Like io_uring_wait_cqe(), except it accepts a timeout value as well. Note
that an sqe is used internally to handle the timeout. Applications using
this function must never set sqe->user_data to LIBURING_UDATA_TIMEOUT!

Signed-off-by: Jens Axboe <axboe@kernel.dk>
4 files changed