Re: [osg-users] Building OpenThreads with Qt Support: Any benefits?
Thanks a lot for your answer dude! Cheers! Wang Rui wrote: Hi George and Chris, The QThread support was submitted initially for the further migrating to Symbian and Meego. AFAIK, the Meego version of OSG is already workable in a Chinese lab. But I don't have a clear plan of when and how to merge it to the trunk version at present. And yes, until the 4.7 release, Qt doesn't support setting CPU affinity so far. And I'm not sure if Qt's threading model is safer or not. But at least, it should be a good start for porting OSG to another few mobile platforms. :-) Wang Rui 2011/7/5 Chris 'Xenon' Hanson : On 7/5/2011 4:03 AM, George Bekos wrote: Hello again guys! :D I want to ask you about this BUILD_OPENTHREADS_WITH_QT CMake flag when you build OSG. From what I saw the only thing this flag does is to use the Qt Threading library for OpenThreads. Are there any benefits from using Qt Threading library over for example Win32 threads or pThreads? I understand that Qt Threading library acts as an extra layer on top of some other library (Win32threads,pThreads etc) depending on the platform. In our main application we use Qt Framework a lot for the GUI. Building OpenThreads with Qt Thread support makes it any safer? Are there evidence that I might have threading issues when I use OSG with Qt Framework without OpenThreads Qt support enabled? I'm interested in this answer too. I seem to recall that Qt's threading library doesn't expose a CPU affinity mask, which OSG kind of likes. Is any of this true? -- Chris 'Xenon' Hanson, omo sanza lettere. http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- Post generated by Mail2Forum -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41184#41184 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Building OpenThreads with Qt Support: Any benefits?
So if this is primarily for mobile devices, would that be useful info to add to the CMakeLists.txt file as the option documentation, so it pops up as a tool-tip? Something like this patch? https://github.com/rpavlik/osg/compare/openscenegraph:master...clarify-qthreads Ryan On Wed, Jul 6, 2011 at 3:07 AM, George Bekos bekos...@live.com wrote: Thanks a lot for your answer dude! Cheers! Wang Rui wrote: Hi George and Chris, The QThread support was submitted initially for the further migrating to Symbian and Meego. AFAIK, the Meego version of OSG is already workable in a Chinese lab. But I don't have a clear plan of when and how to merge it to the trunk version at present. And yes, until the 4.7 release, Qt doesn't support setting CPU affinity so far. And I'm not sure if Qt's threading model is safer or not. But at least, it should be a good start for porting OSG to another few mobile platforms. :-) Wang Rui 2011/7/5 Chris 'Xenon' Hanson : On 7/5/2011 4:03 AM, George Bekos wrote: Hello again guys! :D I want to ask you about this BUILD_OPENTHREADS_WITH_QT CMake flag when you build OSG. From what I saw the only thing this flag does is to use the Qt Threading library for OpenThreads. Are there any benefits from using Qt Threading library over for example Win32 threads or pThreads? I understand that Qt Threading library acts as an extra layer on top of some other library (Win32threads,pThreads etc) depending on the platform. In our main application we use Qt Framework a lot for the GUI. Building OpenThreads with Qt Thread support makes it any safer? Are there evidence that I might have threading issues when I use OSG with Qt Framework without OpenThreads Qt support enabled? I'm interested in this answer too. I seem to recall that Qt's threading library doesn't expose a CPU affinity mask, which OSG kind of likes. Is any of this true? -- Ryan Pavlik HCI Graduate Student Virtual Reality Applications Center Iowa State University rpav...@iastate.edu http://academic.cleardefinition.com ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Building OpenThreads with Qt Support: Any benefits?
I understand that this support is mostly for mobile devices but I and my development team do a majority of our work on linux/windows systems using Qt not only for the GUI but for its portability of using QThreads, QNetwork and etc. Is there a possible problem if we mix OpenThreads and QThreads in a application? Especially if we are trying to have simulate a behavior of a vehicle in a three dimensional environment (Visually) Scott -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41211#41211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Building OpenThreads with Qt Support: Any benefits?
Hi Ryan, Oh, I prefer so. It will be much clear for configuring OSG options for specified use. :-) Wang Rui 2011/7/6 Ryan Pavlik rpav...@iastate.edu: So if this is primarily for mobile devices, would that be useful info to add to the CMakeLists.txt file as the option documentation, so it pops up as a tool-tip? Something like this patch? https://github.com/rpavlik/osg/compare/openscenegraph:master...clarify-qthreads Ryan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Building OpenThreads with Qt Support: Any benefits?
Hi Scott, The osgQtBrowser and osgQtWidgets examples already make use of QThreads and we don't see problems until now. But I'm not sure if there will be any hidden bugs mixing two different threading APIs (AFAIK, the MFC worker threads seem to have some conflicts with OpenThreads). At least, I think it's not bad to unify your application to use only Qt for threads, networks, GUIs and so on. Wang Rui 2011/7/7 Scott Wasinger swasin...@comcast.net: I understand that this support is mostly for mobile devices but I and my development team do a majority of our work on linux/windows systems using Qt not only for the GUI but for its portability of using QThreads, QNetwork and etc. Is there a possible problem if we mix OpenThreads and QThreads in a application? Especially if we are trying to have simulate a behavior of a vehicle in a three dimensional environment (Visually) Scott -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41211#41211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Building OpenThreads with Qt Support: Any benefits?
Hello again guys! :D I want to ask you about this BUILD_OPENTHREADS_WITH_QT CMake flag when you build OSG. From what I saw the only thing this flag does is to use the Qt Threading library for OpenThreads. Are there any benefits from using Qt Threading library over for example Win32 threads or pThreads? I understand that Qt Threading library acts as an extra layer on top of some other library (Win32threads,pThreads etc) depending on the platform. In our main application we use Qt Framework a lot for the GUI. Building OpenThreads with Qt Thread support makes it any safer? Are there evidence that I might have threading issues when I use OSG with Qt Framework without OpenThreads Qt support enabled? Thanks in advance guys! Cheers, George -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=41150#41150 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Building OpenThreads with Qt Support: Any benefits?
On 7/5/2011 4:03 AM, George Bekos wrote: Hello again guys! :D I want to ask you about this BUILD_OPENTHREADS_WITH_QT CMake flag when you build OSG. From what I saw the only thing this flag does is to use the Qt Threading library for OpenThreads. Are there any benefits from using Qt Threading library over for example Win32 threads or pThreads? I understand that Qt Threading library acts as an extra layer on top of some other library (Win32threads,pThreads etc) depending on the platform. In our main application we use Qt Framework a lot for the GUI. Building OpenThreads with Qt Thread support makes it any safer? Are there evidence that I might have threading issues when I use OSG with Qt Framework without OpenThreads Qt support enabled? I'm interested in this answer too. I seem to recall that Qt's threading library doesn't expose a CPU affinity mask, which OSG kind of likes. Is any of this true? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Building OpenThreads with Qt Support: Any benefits?
Hi George and Chris, The QThread support was submitted initially for the further migrating to Symbian and Meego. AFAIK, the Meego version of OSG is already workable in a Chinese lab. But I don't have a clear plan of when and how to merge it to the trunk version at present. And yes, until the 4.7 release, Qt doesn't support setting CPU affinity so far. And I'm not sure if Qt's threading model is safer or not. But at least, it should be a good start for porting OSG to another few mobile platforms. :-) Wang Rui 2011/7/5 Chris 'Xenon' Hanson xe...@alphapixel.com: On 7/5/2011 4:03 AM, George Bekos wrote: Hello again guys! :D I want to ask you about this BUILD_OPENTHREADS_WITH_QT CMake flag when you build OSG. From what I saw the only thing this flag does is to use the Qt Threading library for OpenThreads. Are there any benefits from using Qt Threading library over for example Win32 threads or pThreads? I understand that Qt Threading library acts as an extra layer on top of some other library (Win32threads,pThreads etc) depending on the platform. In our main application we use Qt Framework a lot for the GUI. Building OpenThreads with Qt Thread support makes it any safer? Are there evidence that I might have threading issues when I use OSG with Qt Framework without OpenThreads Qt support enabled? I'm interested in this answer too. I seem to recall that Qt's threading library doesn't expose a CPU affinity mask, which OSG kind of likes. Is any of this true? -- Chris 'Xenon' Hanson, omo sanza lettere. xe...@alphapixel.com http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. There is no Truth. There is only Perception. To Perceive is to Exist. - Xen ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org