[osg-users] OpenThreads won't stop on Windows...

Shayne Tueller shayne.tueller at hill.af.mil
Tue Jan 5 20:56:30 PST 2016


I'm using OpenThreads in an app that's using osgEarth. When I go to stop the thread, I call the cancel() method but it doesn't seem to be working. The thread is still running. Is there something else I need to do to stop the thread and shut it down? I have a stopThread() method that breaks out of my loop in the run() method, however, the thread is sometimes paused in execution inside the loop when I go to shut it down. I need to stop the thread unconditionally when I go to exit. I thought cancel() would do it but it doesn't work.


Thank you!


Read this topic online here:

More information about the osg-users mailing list