| 123 | } |
| 124 | |
| 125 | void BufferManager::Reset() |
| 126 | { |
| 127 | //This method should only be called once all threads have been joined |
| 128 | #if !defined(ARMNN_DISABLE_THREADS) |
| 129 | std::lock_guard<std::mutex> readableListLock(m_ReadableMutex); |
| 130 | std::lock_guard<std::mutex> availableListLock(m_AvailableMutex); |
| 131 | #endif |
| 132 | |
| 133 | m_AvailableList.clear(); |
| 134 | std::queue<IPacketBufferPtr>().swap(m_ReadableList); |
| 135 | |
| 136 | Initialize(); |
| 137 | } |
| 138 | |
| 139 | IPacketBufferPtr BufferManager::GetReadableBuffer() |
| 140 | { |
nothing calls this directly
no test coverage detected