void ExecuteFlushJob(ref NarrowPhaseFlushJob job, BufferPool threadPool) { switch (job.Type) { case NarrowPhaseFlushJobType.RemoveConstraintsFromBodyLists: ConstraintRemover.RemoveConstraintsFromBodyLists(); break; case NarrowPhaseFlushJobType.ReturnConstraintHandles: ConstraintRemover.ReturnConstraintHandles(deterministic, threadPool); break; case NarrowPhaseFlushJobType.RemoveConstraintFromBatchReferencedHandles: ConstraintRemover.RemoveConstraintsFromBatchReferencedHandles(); break; case NarrowPhaseFlushJobType.RemoveConstraintFromTypeBatch: ConstraintRemover.RemoveConstraintsFromTypeBatch(job.Index); break; case NarrowPhaseFlushJobType.FlushPairCacheChanges: PairCache.FlushMappingChanges(); break; } }
void ExecuteFlushJob(ref NarrowPhaseFlushJob job) { switch (job.Type) { case NarrowPhaseFlushJobType.UpdateConstraintBookkeeping: ConstraintRemover.UpdateConstraintBookkeeping(deterministic); break; case NarrowPhaseFlushJobType.RemoveConstraintFromTypeBatch: ConstraintRemover.RemoveConstraintsFromTypeBatch(job.Index); break; case NarrowPhaseFlushJobType.FlushPairCacheChanges: PairCache.FlushMappingChanges(); break; } }