Fatal Contention Problem

Fatal Contention Problem

There seems to be a fatal problem in DistributeChanges:Camera-Can Make Poisition Changes and Wants to Receive position changesPhysics-Can Make Poisition ChangesGeometry-Wants to Receive position changesnow:Physics makes a position changeCamera also makes a position changeGeometry Receives Physic's Position changeCamera 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 Beitrag / 0 neu
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.