Re: [osg-users] Is there any examples about OpenThreads?

2009-10-16 Thread Cory Riddell
Ulrich, Ulrich Hertlein wrote: Hi Cory, On 13/10/09 3:47 PM, Cory Riddell wrote: As I understand it, basically every core has it's own cache. So, if some data is shared between multiple threads, it may be loaded into multiple caches all at once. If one thread makes a change, the value

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-13 Thread Cory Riddell
J-S' advice is right on. You also need to be careful about sharing data between threads. Multithreaded programming is a minefield of difficult to diagnose problems, most caused by locking order problems or data races. I'm still learning about this stuff too and am starting to get some really good

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-13 Thread Ulrich Hertlein
Hi Cory, On 13/10/09 3:47 PM, Cory Riddell wrote: As I understand it, basically every core has it's own cache. So, if some data is shared between multiple threads, it may be loaded into multiple caches all at once. If one thread makes a change, the value cached by the other core/thread is now

[osg-users] Is there any examples about OpenThreads?

2009-10-12 Thread Shiina Ringo
Hi, Here I just need to implement a Timer for my animation control application , using the OpenThreads library. But actually I have found that it is very hard to work on this multi-threads programming for me, especially connected with OSG. So, I just want to find any example programme, which

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-12 Thread Jean-Sébastien Guay
Hi Shiina, So, I just want to find any example programme, which using the OpenThreads library, and It could be very helpful for me. Well technically, the whole of OSG is an example of OpenThreads... But that might not be useful to you since it's a lot of code to look at. Essentially, you

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-12 Thread Shiina Ringo
Hi, J-S Thank you for your fantastic advice! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18209#18209 ___ osg-users mailing list osg-users@lists.openscenegraph.org