| 1319 | } |
| 1320 | |
| 1321 | void |
| 1322 | AppManager::wipeAndCreateDiskCacheStructure() |
| 1323 | { |
| 1324 | //Should be called on the main-thread because potentially can interact with rendering |
| 1325 | assert( QThread::currentThread() == qApp->thread() ); |
| 1326 | |
| 1327 | abortAnyProcessing(); |
| 1328 | |
| 1329 | clearAllCaches(); |
| 1330 | |
| 1331 | assert(_imp->_diskCache); |
| 1332 | _imp->cleanUpCacheDiskStructure( _imp->_diskCache->getCachePath(), false ); |
| 1333 | assert(_imp->_viewerCache); |
| 1334 | _imp->cleanUpCacheDiskStructure( _imp->_viewerCache->getCachePath() , true); |
| 1335 | } |
| 1336 | |
| 1337 | AppInstancePtr |
| 1338 | AppManager::getTopLevelInstance () const |
no test coverage detected