luft/render/main.lisp
in-package#:luft.render
defunmain
Run the standalone atelier on the SDL/Cocoa main-thread host.
defun call-with-sdl-main-thread
(function)Call FUNCTION where synchronous SDL canvas work can use the native main thread. On Darwin, a batch Lisp normally evaluates its toplevel form on the process main thread. Opening a canvas from that continuation would let Cocoa replace the continuation with its durable event loop. This boundary moves FUNCTION to a…