Skip to content

Commit

Permalink
queue: Warning about io_uring_peek_batch_cqe bug. Currently there is a
Browse files Browse the repository at this point in the history
bug that leads to segfault and its been hard to figure out what exactly
is causing this bug.
  • Loading branch information
YoSTEALTH committed Jun 10, 2024
1 parent 9aad5c7 commit 34ced0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/liburing/queue.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ cpdef int io_uring_queue_exit(io_uring ring) nogil:
cpdef unsigned int io_uring_peek_batch_cqe(io_uring ring,
io_uring_cqe cqes,
unsigned int count) nogil:
'''
WARNING: currently there is a bug with `io_uring_peek_batch_cqe()` leading to segfault!!!
'''
return trap_error(__io_uring_peek_batch_cqe(&ring.ptr, &cqes.ptr, count))
cpdef int io_uring_wait_cqes(io_uring ring,
Expand Down

0 comments on commit 34ced0c

Please sign in to comment.