| 271 | } |
| 272 | |
| 273 | bool |
| 274 | BgFetchState::release(const String &url) |
| 275 | { |
| 276 | bool ret = true; |
| 277 | if (nullptr != _policy) { |
| 278 | TSMutexLock(_policyLock); |
| 279 | ret &= _policy->release(url); |
| 280 | TSMutexUnlock(_policyLock); |
| 281 | } |
| 282 | |
| 283 | if (nullptr != _policy) { |
| 284 | setMetric(FETCH_POLICY_SIZE, _policy->getSize()); |
| 285 | } |
| 286 | |
| 287 | return ret; |
| 288 | } |
| 289 | |
| 290 | bool |
| 291 | BgFetchState::uniqueAcquire(const String &url) |
no test coverage detected