mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
picoev: add implementation for OpenBSD using kqueue (#24801)
This commit is contained in:
parent
d1d43abf5c
commit
ce33cc490f
2 changed files with 206 additions and 1 deletions
|
@ -325,7 +325,7 @@ pub fn new(config Config) !&Picoev {
|
|||
// select on windows and others
|
||||
$if linux || termux {
|
||||
pv.loop = create_epoll_loop(0) or { panic(err) }
|
||||
} $else $if freebsd || macos {
|
||||
} $else $if freebsd || macos || openbsd {
|
||||
pv.loop = create_kqueue_loop(0) or { panic(err) }
|
||||
} $else {
|
||||
pv.loop = create_select_loop(0) or { panic(err) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue