| 193 | } |
| 194 | |
| 195 | bool ClBackendContext::AfterUnloadNetwork(NetworkId networkId) |
| 196 | { |
| 197 | bool clearCache = false; |
| 198 | { |
| 199 | std::lock_guard<std::mutex> lockGuard(m_Mutex); |
| 200 | m_NetworkIds.erase(networkId); |
| 201 | clearCache = m_NetworkIds.empty(); |
| 202 | } |
| 203 | |
| 204 | if (clearCache) |
| 205 | { |
| 206 | m_ClContextControlWrapper->ClearClCache(); |
| 207 | } |
| 208 | |
| 209 | return true; |
| 210 | } |
| 211 | |
| 212 | bool ClBackendContext::AfterEnqueueWorkload(NetworkId) |
| 213 | { |
no test coverage detected