OSX threading stuff needs work #9

Open
3b opened this Issue Nov 30, 2009 · 8 comments

Projects

None yet

4 participants

@3b
Owner
3b commented Nov 30, 2009

OSX requires GL/GLUT stuff to be done from initial thread.

CCL uses first thread internally by default, so need to rearrange threads there.

SBCL should work if cl-opengl is loaded before slime, or slime isn't using :spawn communication style

not sure about other lisps...

@luismbo

FYI, I've started working on this issue. Feedback would be welcome, particularly regarding the general feasibility of the approach of interrupting the initial thread to run the main loop.

@luismbo

080d001199adae17056a takes your feedback into account and adds a few more cleanups. Next step is to port this to bordeaux-threads which might require augmenting it with some interface to get the initial-thread. Any objections to depending on bordeaux-threads on darwin?

@davorb

Has there been any progress on this?

@epeld

For what it's worth, I could run all the examples fine on OSX (with SBCL) using this:
https://github.com/Shinmera/trivial-main-thread
to ensure I call display-window from the main thread.

@luismbo

@epeld Nice. Want to submit a pull request using that on OS X?

@epeld

@luismbo Sure, I will give it a shot but it might take a while. I'm new to lisp and haven't even been able to figure out how to load the project from its .asd-files yet..

@luismbo

@epeld heh, that's OK. How are you loading it now?

@epeld

@luismbo I was using quicklisp and just editing the source that emacs brought me to after M-.. But I figured that wouldn't work once I forked the repo..

This is what I did anyway: epeld@1532421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment