io.backend.unix.multiplexors.run-loop: switch to "mx get-global".

db4
John Benediktsson 2012-08-01 16:20:31 -07:00
parent c1d680eabc
commit 1b32690d22
1 changed files with 2 additions and 2 deletions

View File

@ -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 ;