Home
last modified time | relevance | path

Searched refs:theCache (Results 1 – 4 of 4) sorted by relevance

/haiku/src/tests/kits/support/bblockcache/
H A DBlockCacheConcurrencyTest.cpp77 BlockCacheConcurrencyTest::GetBlock(BBlockCache *theCache, size_t blockSize, in GetBlock() argument
80 void *thePtr = theCache->Get(blockSize); in GetBlock()
106 BlockCacheConcurrencyTest::SaveBlock(BBlockCache *theCache, void *thePtr, in SaveBlock() argument
125 theCache->Save(thePtr, blockSize); in SaveBlock()
177 BlockCacheConcurrencyTest::TestBlockCache(BBlockCache *theCache, in TestBlockCache() argument
189 GetBlock(theCache, sizeOfBlocksInCache, theThread, &cacheList, &nonCacheList); in TestBlockCache()
190 GetBlock(theCache, sizeOfBlocksInCache, theThread, &cacheList, &nonCacheList); in TestBlockCache()
191 GetBlock(theCache, sizeOfNonCacheBlocks, theThread, &cacheList, &nonCacheList); in TestBlockCache()
192 GetBlock(theCache, sizeOfNonCacheBlocks, theThread, &cacheList, &nonCacheList); in TestBlockCache()
194 SaveBlock(theCache, cacheList.ItemAt(cacheList.CountItems() / 2), in TestBlockCache()
[all …]
H A DBlockCacheExerciseTest.cpp23 theCache(NULL), in BlockCacheExerciseTest()
167 freeList.AddItem(theCache->Get(sizeOfBlocksInCache)); in BuildLists()
170 theCache->Save(freeList.ItemAt(i), sizeOfBlocksInCache); in BuildLists()
183 void *thePtr = theCache->Get(blockSize); in GetBlock()
240 theCache->Save(thePtr, blockSize); in SaveBlock()
300 theCache = new BBlockCache(numBlocksInCache, sizeOfBlocksInCache, B_OBJECT_CACHE); in PerformTest()
301 CPPUNIT_ASSERT(theCache != NULL); in PerformTest()
307 delete theCache; in PerformTest()
317 theCache = new BBlockCache(numBlocksInCache, sizeOfBlocksInCache, B_MALLOC_CACHE); in PerformTest()
318 CPPUNIT_ASSERT(theCache != NULL); in PerformTest()
[all …]
H A DBlockCacheConcurrencyTest.h31 void *GetBlock(BBlockCache *theCache, size_t blockSize,
33 void SaveBlock(BBlockCache *theCache, void *, size_t blockSize,
38 void TestBlockCache(BBlockCache *theCache, bool isMallocTest);
H A DBlockCacheExerciseTest.h23 BBlockCache *theCache;