Christoph Schäfer wrote: > Hi List, > > I'm still struggling using two aspects in my mt application. So I deeply > analyzed the 13multithreading2.cpp again. I stumbled over some strange > behavior: > > If you comment out the lines calling > ...->getChangeList()->applyAndClear(); the application will still run > and the torus will still turn.It ssems like the sync between aspect 0 > and 1 is done by entering the sync barrier? Is this intended behavior or > does the example not reflect the changes from OpenSG1.x to OpenSG2?
It looks like the example hasn't been updated w.r.t the change in pointer types in OSG2, i.e. the 'trans' pointer is not a MTRec-ptr, but a regular Ptr (the latter did select aspect in 1.x, but does not in 2.0), so it does not write to the second aspect, thus no need to sync. Try changing the ptr type to MTRecPtr, it ought to behave properly then. Cheers, /Marcus ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
