Re: Threads

Martin Cracauer <[email protected]>
Newsgroups gmane.lisp.cmucl.general
Message-ID <[email protected]>
Greg Bennett wrote on Tue, Jan 20, 2009 at 08:23:36PM -0500: 
> Good evening all. I am trying to learn how OpenGL operates via cl-opengl 
> and
> cmucl-19e. While I can compile the graphics demos and run them, I lose 
> control of cmcl's
> repl. I can certainly type characters into it; there is no eval running 
> as far as I can see.
> Those characters appear to be fed to eval when I kill the graphics 
> loop/processes.

You definitely want to do an event loop on the REPL fd and the
graphics subsystem here, no threads.

Whether it's easy to hack up cl-opengl to do that is a different
matter but it would be wise on their part to provide a hook for an
event loop.

The threads in CMUCL won't work reliably as-is, green or not.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <[email protected]>   http://www.cons.org/cracauer/
FreeBSD - where you want to go, today.      http://www.freebsd.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.