void IResource::unload() { m_loadState=LoadState_Unloading; preUnloadInternal(); unloadInternal(); postUnloadInternal(); m_loadState=LoadState_Unloaded; notifyResourceListners(false); // if(m_manager) // m_manager->resourceUnloaded(this); }
void Module::unload() { XMP_AutoLock lock (&mLoadingLock, kXMP_WriteLock); unloadInternal(); }