More whitespace cleanup all over the place.

This commit is contained in:
Michael Lotz
2015-04-10 15:05:14 +02:00
parent 416255de4e
commit e01de52283
6 changed files with 41 additions and 35 deletions
+9 -3
View File
@@ -26,9 +26,11 @@
#include <stdlib.h>
#include <new>
#define MAGIC1 0x9183f4d9
#define MAGIC2 0xa6b3c87d
struct BBlockCache::_FreeBlock {
DEBUG_ONLY( uint32 magic1; )
_FreeBlock *next;
@@ -42,10 +44,10 @@ struct BBlockCache::_FreeBlock {
// Thus we need to create multiple small ones.
// We maintain a list of free blocks.
BBlockCache::BBlockCache(uint32 blockCount,
size_t blockSize,
BBlockCache::BBlockCache(uint32 blockCount, size_t blockSize,
uint32 allocationType)
: fFreeList(0),
:
fFreeList(0),
fBlockSize(blockSize),
fFreeBlocks(0),
fBlockCount(blockCount),
@@ -87,6 +89,7 @@ BBlockCache::BBlockCache(uint32 blockCount,
}
}
BBlockCache::~BBlockCache()
{
// walk the free list and deallocate all blocks
@@ -102,6 +105,7 @@ BBlockCache::~BBlockCache()
fLocker.Unlock();
}
void *
BBlockCache::Get(size_t blockSize)
{
@@ -126,6 +130,7 @@ BBlockCache::Get(size_t blockSize)
return pointer;
}
void
BBlockCache::Save(void *pointer, size_t blockSize)
{
@@ -146,5 +151,6 @@ BBlockCache::Save(void *pointer, size_t blockSize)
fLocker.Unlock();
}
void BBlockCache::_ReservedBlockCache1() {}
void BBlockCache::_ReservedBlockCache2() {}