io.backend.unix.multiplexors.run-loop: switch to "mx get-global".
parent
c1d680eabc
commit
1b32690d22
|
@ -12,8 +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 enable-all-callbacks
|
3drop
|
||||||
0 mx get kqueue-mx>> wait-for-events
|
0 mx get-global kqueue-mx>> wait-for-events
|
||||||
yield
|
yield
|
||||||
] alien-callback ;
|
] alien-callback ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue