MCPcopy Create free account
hub / github.com/ARM-software/armnn / Reset

Method Reset

profiling/client/src/BufferManager.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void 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
139IPacketBufferPtr BufferManager::GetReadableBuffer()
140{

Callers

nothing calls this directly

Calls 3

InitializeFunction · 0.85
clearMethod · 0.45
swapMethod · 0.45

Tested by

no test coverage detected