SpiecsEngine
 
Loading...
Searching...
No Matches

◆ TEST_F() [27/72]

SpicesTest::TEST_F ( ObjectPool_test ,
AllocAfterDeAlloc  )

Testing Spices::ObjectPool::AllocAfterDeAlloc.

Definition at line 205 of file ObjectPool_test.h.

205 {
206
208
209 std::vector<Object*> objects;
210 objects.resize(n);
211
212 for (int j = 0; j < 5; j++)
213 {
214 for (size_t i = 0; i < n; i++)
215 {
216 Object* o = m_ObjectPool->New();
217 objects[i] = o;
218 }
219
220 for (size_t i = 0; i < n; i++)
221 {
222 m_ObjectPool->Delete(objects[i]);
223 }
224 }
225 }
#define SPICESTEST_PROFILE_FUNCTION()