[osg-users] SingleThreaded leading to whole application just running on one core
Christoph Weiss
weiss at wsoptics.de
Mon Sep 26 06:20:32 PDT 2016
Hi Robert,
> If you are using OpenThreads for your threads then you have no problem
> at all anyway, you can create them before or after viewer.realizer()
> without any problem.
>
> It's only if you create your threads afterwards using another
> threading library that doesn't set the affinity mask in any way so
> just inherits the infinity mask.
>
> A number of contributors to this thread have made it out to be a
> general problem, it's not, it's a very specific usage case issue.
I strongly disagree with the last sentence. It is the most general use
case possible: using standard C++ features.
OSG's behavior changes the behavior of programs that, apart from OSG,
rely solely on the C++ specification. This is the most general problem
possible, and far more important than the behavior of some specific
libraries like pthreads or OpenThreads.
Christoph
More information about the osg-users
mailing list