SDL and pthreads

Hiyas,

Ok, might be a dumb question or just wierdness…but here we go.
I have a client program which uses OpenGL, we support 3 frontends for
the GUI: gtk, glut and (hopefully) SDL. The gtk and glut work just fine
but when I try to use the SDL interface none of the pthreads seem to work.
The client is running 4 or 5 threads concurrently to handle such things as
networking and garbage collection.

So my question is this, is the SDL somehow interferring with the pthreads?

If it is, how do I fix it? Using SDL_threads isn’t a viable option since
I would have to fill the code with #ifdefs to allow for the other GUI’s…

Any thoughts?

/Ant Whitehead

Hiyas,

Ok, might be a dumb question or just wierdness…but here we go.
I have a client program which uses OpenGL, we support 3 frontends for
the GUI: gtk, glut and (hopefully) SDL. The gtk and glut work just fine
but when I try to use the SDL interface none of the pthreads seem to work.
The client is running 4 or 5 threads concurrently to handle such things as
networking and garbage collection.

So my question is this, is the SDL somehow interferring with the pthreads?

If it is, how do I fix it? Using SDL_threads isn’t a viable option since
I would have to fill the code with #ifdefs to allow for the other GUI’s…
I forgot to mention, I’m supporting the following platforms for this…
Sun Solaris 2.6 |
Sun Solaris 7 > With Sun OpenGL and Mesa
Sun Solaris 8 |
Win32
Linux (glibc2)

I’m using gcc on all platforms.

/AntOn Thu, 3 Aug 2000, Ant Whitehead wrote: