Thanks Marcel, changes look sensible, now merged and submitted to svn/trunk and OSG-3.2
On 7 February 2014 20:45, Marcel Pursche < [email protected]> wrote: > Hi, > > I wrote a fix for the issue described in this thread: > http://forum.openscenegraph.org/viewtopic.php?t=13201&highlight=pthreads > > The problem is that when OpenThreads is build with the Linux pthreads > implementation all threads inherit the processor affinity from their parent > thread. > This behavior is also described in the pthreads man page ( > http://man7.org/linux/man-pages/man3/pthread_create.3.html): > > > > > Linux-specific details > > The new thread inherits copies of the calling thread's capability > > sets (see capabilities(7)) and CPU affinity mask (see > > sched_setaffinity(2)). > > > > To prevent this behaviour I wrote a patch that explicitly sets the > affinity mask to all cores of the system, if no specific affinity was > defined with PThread::setProcessorAffinity(unsigned int) . > > Thank you! > > Cheers, > Marcel > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=58194#58194 > > > > > Attachments: > http://forum.openscenegraph.org//files/pthreads_fix_226.zip > > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
