1
0
Fork 0
mirror of https://github.com/ii64/gouring.git synced 2025-04-26 05:42:48 +02:00

fix: SQThread option should add IORING_SETUP_SQPOLL

Signed-off-by: Nugraha <26342994+ii64@users.noreply.github.com>
This commit is contained in:
Nugraha 2022-02-11 19:54:24 +07:00
parent 04750112b3
commit 6140a6ea1d
Signed by untrusted user who does not match committer: Xeffy
GPG key ID: E41C08AD390E7C49

View file

@ -8,5 +8,6 @@ func SQThread(cpu, idleMS uint32) Option {
return func(p *IOUringParams) {
p.SQThreadCPU = cpu
p.SQThreadIdle = idleMS
p.Flags |= IORING_SETUP_SQPOLL
}
}