mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
picoev: fix documentation (#24811)
This commit is contained in:
parent
b909e2eb37
commit
6cbffd53ba
8 changed files with 50 additions and 44 deletions
|
@ -15,14 +15,14 @@ mut:
|
|||
|
||||
type LoopType = SelectLoop
|
||||
|
||||
// create_select_loop creates a new `SelectLoop` struct with the given `id`
|
||||
// create_select_loop creates a new `SelectLoop` struct with the given `id`.
|
||||
pub fn create_select_loop(id int) !&SelectLoop {
|
||||
return &SelectLoop{
|
||||
id: id
|
||||
}
|
||||
}
|
||||
|
||||
// updates the events associated with a file descriptor in the event loop
|
||||
// updates the events associated with a file descriptor in the event loop.
|
||||
@[direct_array_access]
|
||||
fn (mut pv Picoev) update_events(fd int, events int) int {
|
||||
// check if fd is in range
|
||||
|
@ -32,7 +32,7 @@ fn (mut pv Picoev) update_events(fd int, events int) int {
|
|||
return 0
|
||||
}
|
||||
|
||||
// performs a single iteration of the select-based event loop
|
||||
// performs a single iteration of the select-based event loop.
|
||||
@[direct_array_access]
|
||||
fn (mut pv Picoev) poll_once(max_wait_in_sec int) int {
|
||||
// Initializes sets for read, write, and error events
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue