Add option for getting a completion without waiting

This now exposes two helpers:

io_uring_get_completion()
	Return a completion, if we have one (or more) available in
	the ring

io_uring_wait_completion()
	Return a completion, waiting for it if necessary

Signed-off-by: Jens Axboe <axboe@kernel.dk>
3 files changed
tree: 6b0bb6677f297c6d3205744eda9e0bc5139373a1
  1. src/
  2. test/
  3. .gitignore
  4. COPYING
  5. liburing.spec
  6. Makefile