2008-04-11 08:15:26 -04:00
|
|
|
! Copyright (C) 2008 Slava Pestov.
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
2011-11-02 20:13:31 -04:00
|
|
|
USING: io.backend system namespaces
|
|
|
|
io.backend.unix.multiplexers io.backend.unix.multiplexers.run-loop
|
|
|
|
kernel accessors assocs continuations unix io.backend.unix
|
2011-11-08 14:54:54 -05:00
|
|
|
io.backend.unix.multiplexers.kqueue io.files.unix init ;
|
2009-12-21 21:42:49 -05:00
|
|
|
IN: io.backend.unix.macosx
|
2008-12-11 23:48:19 -05:00
|
|
|
|
2011-11-02 20:13:31 -04:00
|
|
|
SINGLETON: macosx-kqueue
|
|
|
|
|
|
|
|
M: macosx-kqueue init-io ( -- )
|
|
|
|
<kqueue-mx> mx set-global ;
|
|
|
|
|
2008-12-11 23:48:19 -05:00
|
|
|
M: macosx init-io ( -- )
|
|
|
|
<run-loop-mx> mx set-global ;
|
2008-12-09 18:49:03 -05:00
|
|
|
|
2008-04-11 09:35:21 -04:00
|
|
|
macosx set-io-backend
|
2011-11-08 14:54:54 -05:00
|
|
|
|
|
|
|
[ start-signal-pipe-thread ] "io.backend.unix:signal-pipe-thread" add-startup-hook
|