threads support
OpenGL supports Level 2 threads. This means HP OpenGL can be used in threaded applications,
and more than one thread can use OpenGL.
Using OpenGL graphics in a kernel threaded application requires that the application link with
libpthread.so (not the archived version, libpthread.a).
OpenGL libraries are not cancel safe or fork safe.
A given context can only be current in one thread at a time.
Enable your X11 library to use threads by calling XInitThreads () in your program. An example
of a threaded OpenGL program is given in /opt/graphics/OpenGL/demos/threads.
additional documentation
For more information on using threads, see the following documentation:
http://docs.hp.com
■
The
■
The OpenGL Programming Guide
■
The OpenGL Reference Manual
■
Threadtime by S. Norton and M. Dipasquale
OpenGL implementation guide
Web site (search for "Threads" and "Multiprocessing")
overview of OpenGL
1–5