[ab] SDL and polling based Slime
Luke Crook
luke at balooga.com
Fri May 25 15:53:32 CDT 2007
Brad Beveridge <brad.beveridge at ...> writes:
> I'll enable threads for my SBCL. Worse luck! Now my sdl-rects
> example doesn't even bring a window up (though, breaking out now
> works).
> If I load the example from the REPL then all works fine. I guess that
> I am getting some borkedness from Slime's technique of spawning a new
> thread for each command. The thread that starts the cocoa stuff up is
> therefore not in the main thread :(
Lispworks has a single thread that services the REPL. Each M-x-e command is
spawned off into a different thread.
In win32, the thread that creates the window must also services events - this
is not true for Linux but it may be true for OSX, I don't know.
So it is possible to first create an SDL window in the REPL and then start the
SDL event loop. But creating the window in the REPL, and M-x-e in an Emacs
buffer to start the SDL event loop will not work as these are two different
threads.
But, the SDL window should at least appear regardless.
- Luke
More information about the application-builder
mailing list