////////////////////////////////////////////////////////////////////////// // update //virtual void CsCore::update() { // Should be handled in CsPackage. Look into doing it. processCreateResources(); processLoadingResources(); processLoadedResource(); processUnloadingResources(); processCallbacks(); }
////////////////////////////////////////////////////////////////////////// // update //virtual void CsCore::update() { // TODO: Remove these, all is handled in CsResource now! processCreateResources(); processLoadingResources(); processLoadedResource(); processUnloadingResources(); // Garbage collection. // TODO: Mark packages for clean up instead of just iterating over them. if( IsCollectingGarbage_ ) { freeUnreferencedPackages(); } }
////////////////////////////////////////////////////////////////////////// // update //virtual void CsCore::update() { // TODO: Remove these, all is handled in CsResource now! processCreateResources(); processLoadingResources(); processLoadedResource(); processUnloadingResources(); #ifdef PSY_SERVER { // Import everything in the import list. BcScopedLock< BcMutex > Lock( ContainerLock_ ); CsResourceRef<> Handle; for( TImportListIterator Iter( ImportList_.begin() ); Iter != ImportList_.end(); ++Iter ) { internalImportResource( (*Iter), Handle, NULL, BcTrue ); } ImportList_.clear(); } #endif }