io.backend.unix.multiplexers.run-loop: don't enable-all-callbacks twice.
parent
68446b047b
commit
fec182d2d8
|
|
@ -12,9 +12,8 @@ TUPLE: run-loop-mx kqueue-mx ;
|
||||||
: file-descriptor-callback ( -- callback )
|
: file-descriptor-callback ( -- callback )
|
||||||
void { CFFileDescriptorRef CFOptionFlags void* }
|
void { CFFileDescriptorRef CFOptionFlags void* }
|
||||||
cdecl [
|
cdecl [
|
||||||
2drop
|
3drop
|
||||||
0 mx get-global kqueue-mx>> wait-for-events
|
0 mx get-global kqueue-mx>> wait-for-events
|
||||||
enable-all-callbacks
|
|
||||||
reset-run-loop
|
reset-run-loop
|
||||||
yield
|
yield
|
||||||
] alien-callback ;
|
] alien-callback ;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue