picoev: renaming, doc (#20567)

This commit is contained in:
Hitalo Souza 2024-02-09 22:54:27 -04:00 committed by GitHub
parent 2d0ed2c1d6
commit ee3cd36760
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 91 additions and 65 deletions

View file

@ -156,9 +156,9 @@ fn (mut pv Picoev) update_events(fd int, events int) int {
}
@[direct_array_access]
fn (mut pv Picoev) poll_once(max_wait int) int {
fn (mut pv Picoev) poll_once(max_wait_in_sec int) int {
ts := C.timespec{
tv_sec: max_wait
tv_sec: max_wait_in_sec
tv_nsec: 0
}