MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / clear_pools

Method clear_pools

src/runtime/PoolManager.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void 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
103size_t PoolManager::num_pools() const
104{

Callers 1

clearMethod · 0.80

Calls 2

emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected