[osg-users] Running OSG in a trhead on Mac OSX

Kevin Gucwa kgucwa at ucdavis.edu
Fri Sep 23 09:46:11 PDT 2016


I am working on a project which requires me to put my OSG updates into a thread so that the main thread can continue for integration into another process.  All OSG events are done in the thread and locked with mutexes when i need to add new nodes.  This works perfectly on Linux and Windows and is deployed currently.  Thank you for such great software!  I am now working on the port to OSX and running into the following issue.  When I run the viewer->frame() updates in a thread, the keyboard and mouse inputs cannot register into my GUIEventHandlers.  Running the frame loop from the main thread and blocking my program allows events to be handled properly but stops my actual code from progressing.

I am new to Mac programming but have been using OSG for a few years now.  Can anyone provide any guidance to Mac problems?  I don't have a minimal example since it is integrated into a large project.  If necessary I can write a new one which should demonstrate the problems.


Thank you!


Read this topic online here:

More information about the osg-users mailing list