Handbook
Glossary
add-input-callback ( thread fd mx -- )
Vocabulary
io
.
backend
.
unix
.
multiplexers
Inputs
thread
an
object
fd
an
object
mx
an
object
Outputs
None
Definition
IN:
io.backend.unix.multiplexers
GENERIC:
add-input-callback
( thread fd mx -- )
Methods
USING:
generic
io.backend.unix.multiplexers
io.backend.unix.multiplexers.kqueue
kernel
unix.kqueue
;
M:
kqueue-mx
add-input-callback
[
M\
kqueue-mx
add-input-callback
(call-next-method)
]
[
[
EVFILT_READ
17
make-kevent
]
dip
register-kevent
]
2bi
;
USING:
accessors
assocs
io.backend.unix.multiplexers
;
M:
mx
add-input-callback
reads>>
push-at
;
USING:
accessors
io.backend.unix.multiplexers
io.backend.unix.multiplexers.run-loop
;
M:
run-loop-mx
add-input-callback
kqueue-mx>>
add-input-callback
;