mirror of
https://github.com/ii64/gouring.git
synced 2024-12-18 02:58:49 +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) {
|
func (ring *IoUring) __io_uring_submit_timeout(waitNr uint32, ts *syscall.Timespec) (ret int, err error) {
|
||||||
sqe := ring.io_uring_get_sqe()
|
sqe := ring.io_uring_get_sqe()
|
||||||
if sqe == nil {
|
if sqe == nil {
|
||||||
ret, err = ring.io_uringn_submit()
|
ret, err = ring.io_uring_submit()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -309,7 +309,7 @@ func (ring *IoUring) io_uring_wait_cqe_timeout(cqePtr **IoUringCqe, ts *syscall.
|
||||||
*
|
*
|
||||||
* Returns number of sqes submitted
|
* 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)
|
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) {
|
func (h *IoUring) Submit() (int, error) {
|
||||||
return h.io_uringn_submit()
|
return h.io_uring_submit()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *IoUring) SubmitAndWait(waitNr uint32) (int, error) {
|
func (h *IoUring) SubmitAndWait(waitNr uint32) (int, error) {
|
||||||
|
|
Loading…
Reference in a new issue