Hi J.P,

On Tue, Oct 20, 2009 at 7:44 AM, J.P. Delport <[email protected]> wrote:
> is it OK to create a viewer in e.g. the main thread and then call frame()
> from a different thread? We're getting erratic results on Linux vs Windows
> vs Mac. So I just want to know if this use case is "legal".

I've done this under Linux - the osgqtbrowser example in svn/trunk has
the option of creating a background thread form running the frame loop
while qt takes control over the main thread.  I haven't tested this
under Windows or OSX though.  OSX I wouldn't be surprised at problems
as it has a really stupid limitation of only getting window events
from the main thread - you simply can't poll for events in any other
thread.  I don't know what the status is under Windows though.  X11
copes just fine with getting events from any thread in your app -
sometimes the oldest tech still totally outstrips the new...

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to