| 91 | } |
| 92 | |
| 93 | void PoolManager::clear_pools() |
| 94 | { |
| 95 | arm_compute::lock_guard<arm_compute::Mutex> lock(_mtx); |
| 96 | ARM_COMPUTE_ERROR_ON_MSG(!_occupied_pools.empty(), "All pools should be free in order to clear the PoolManager!"); |
| 97 | _free_pools.clear(); |
| 98 | |
| 99 | // Update semaphore |
| 100 | _sem = nullptr; |
| 101 | } |
| 102 | |
| 103 | size_t PoolManager::num_pools() const |
| 104 | { |