Handbook
Glossary
select-mx
Vocabulary
io
.
backend
.
unix
.
multiplexers
.
select
Definition
USING:
io.backend.unix.multiplexers
;
IN:
io.backend.unix.multiplexers.select
TUPLE:
select-mx
<
mx
read-fdset write-fdset
;
Methods
USING:
io.backend.unix
io.backend.unix.multiplexers
io.backend.unix.multiplexers.select
kernel
math
unix.ffi
unix.time
;
M::
select-mx
wait-for-events
( nanos mx -- )
mx
[
init-fdsets
nanos
dup
[
1000
/i
make-timeval
]
when
select
multiplexer-error
drop
]
[
[
read-fdset/tasks
]
keep
[
input-available
]
check-fdset
]
[
[
write-fdset/tasks
]
keep
[
output-available
]
check-fdset
]
tri
;