Hi Robert, I spent few hours on this and I have things to report. First, there are code mods I did to fix it actually, but, there is a comment like "// Must protect linux from realtime.", PThread.cpp around ln: 323. I have mods to submit but can not do that yet since there are issue with the config. Seam like these are not getting defined on my 64bit Ubuntu (I am not a config guru so I need help from others on this): __linux, __linux__, HAVE_THREE_PARAM_SCHED_SETAFFINITY, HAVE_TWO_PARAM_SCHED_SETAFFINITY ... etc. and all of these that should be set from the pthreads/CMakeLists.txt but are not. Also ALLOW_PRIORITY_SCHEDULING is not set at all. I had to hard code these defines to make it work but someone need to look in the configuration of pthread or at least give some hints so I can dig into
Thanks for the time anyway you are showing on this topic Nick On Tue, May 6, 2014 at 10:21 AM, Robert Osfield <[email protected]>wrote: > HI Nick, > > On 5 May 2014 20:07, Trajce Nikolov NICK <[email protected]> > wrote: > > Curtis implemented the same code with pthreads (attached) which seam to > > work, so it is definitely a bug in OpenThreads (for linux only, Windows > > implementation seam to be working). Just FYI > > I am currently focused on some other complex work and don't really > have spare brain capacity to add another item right now. Threading > affinity used to work under Linux when OpenThreads was created, I > guess something must have changed in the pthread implementation that > has changed how things need to be managed or perhaps a regression has > happened on the OSG side. > > As I don't have the capacity right now could others investigate further? > > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

