mirror of
https://github.com/ii64/gouring.git
synced 2024-11-23 23:40:29 +01:00
parent
d0c4e7f98f
commit
4ed8bc99bd
2 changed files with 3 additions and 3 deletions
4
queue.go
4
queue.go
|
@ -234,7 +234,7 @@ func (ring *IoUring) io_uring_wait_cqes_new(cqePtr **IoUringCqe, waitNtr uint32,
|
|||
func (ring *IoUring) __io_uring_submit_timeout(waitNr uint32, ts *syscall.Timespec) (ret int, err error) {
|
||||
sqe := ring.io_uring_get_sqe()
|
||||
if sqe == nil {
|
||||
ret, err = ring.io_uringn_submit()
|
||||
ret, err = ring.io_uring_submit()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ func (ring *IoUring) io_uring_wait_cqe_timeout(cqePtr **IoUringCqe, ts *syscall.
|
|||
*
|
||||
* Returns number of sqes submitted
|
||||
*/
|
||||
func (ring *IoUring) io_uringn_submit() (int, error) {
|
||||
func (ring *IoUring) io_uring_submit() (int, error) {
|
||||
return ring.__io_uring_submit_and_wait(0)
|
||||
}
|
||||
|
||||
|
|
2
uring.go
2
uring.go
|
@ -40,7 +40,7 @@ func (h *IoUring) SeenCqe(cqe *IoUringCqe) {
|
|||
}
|
||||
|
||||
func (h *IoUring) Submit() (int, error) {
|
||||
return h.io_uringn_submit()
|
||||
return h.io_uring_submit()
|
||||
}
|
||||
|
||||
func (h *IoUring) SubmitAndWait(waitNr uint32) (int, error) {
|
||||
|
|
Loading…
Reference in a new issue