| 2088 | } |
| 2089 | |
| 2090 | void |
| 2091 | AppManager::setAsTopLevelInstance(int appID) |
| 2092 | { |
| 2093 | QMutexLocker k(&_imp->_appInstancesMutex); |
| 2094 | |
| 2095 | if (_imp->_topLevelInstanceID == appID) { |
| 2096 | return; |
| 2097 | } |
| 2098 | _imp->_topLevelInstanceID = appID; |
| 2099 | for (AppInstanceVec::iterator it = _imp->_appInstances.begin(); |
| 2100 | it != _imp->_appInstances.end(); |
| 2101 | ++it) { |
| 2102 | if ( (*it)->getAppID() != _imp->_topLevelInstanceID ) { |
| 2103 | if ( !isBackground() ) { |
| 2104 | (*it)->disconnectViewersFromViewerCache(); |
| 2105 | } |
| 2106 | } else { |
| 2107 | if ( !isBackground() ) { |
| 2108 | (*it)->connectViewersToViewerCache(); |
| 2109 | setOFXHostHandle( (*it)->getOfxHostOSHandle() ); |
| 2110 | } |
| 2111 | } |
| 2112 | } |
| 2113 | } |
| 2114 | |
| 2115 | void |
| 2116 | AppManager::setOFXHostHandle(void* handle) |
no test coverage detected