Fatal Contention Problem

Fatal Contention Problem

stealth977's picture

There seems to be a fatal problem in DistributeChanges: Camera-Can Make Poisition Changes and Wants to Receive position changes Physics-Can Make Poisition Changes Geometry-Wants to Receive position changes now: Physics makes a position change Camera also makes a position change Geometry Receives Physic's Position change Camera Also Receives Physics's Position change -- BOTH ARE ON SAME THREAD SINCE a Subjects Notifications to observers are serial -- ON ANOTHER DISTRIBUTION THREAD (AT THE SAME TIME) - Geometry Receives Camera's Position Change - Geometry Asks Camera's Position (which is being modified on another thread to make cam.pos = physcs.pos) - Now what value we get??

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.