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 <stdlib.h>
#include <new> #include <new>
#define MAGIC1 0x9183f4d9 #define MAGIC1 0x9183f4d9
#define MAGIC2 0xa6b3c87d #define MAGIC2 0xa6b3c87d
struct BBlockCache::_FreeBlock { struct BBlockCache::_FreeBlock {
DEBUG_ONLY( uint32 magic1; ) DEBUG_ONLY( uint32 magic1; )
_FreeBlock *next; _FreeBlock *next;
@@ -42,10 +44,10 @@ struct BBlockCache::_FreeBlock {
// Thus we need to create multiple small ones. // Thus we need to create multiple small ones.
// We maintain a list of free blocks. // We maintain a list of free blocks.
BBlockCache::BBlockCache(uint32 blockCount, BBlockCache::BBlockCache(uint32 blockCount, size_t blockSize,
size_t blockSize,
uint32 allocationType) uint32 allocationType)
: fFreeList(0), :
fFreeList(0),
fBlockSize(blockSize), fBlockSize(blockSize),
fFreeBlocks(0), fFreeBlocks(0),
fBlockCount(blockCount), fBlockCount(blockCount),
@@ -87,6 +89,7 @@ BBlockCache::BBlockCache(uint32 blockCount,
} }
} }
BBlockCache::~BBlockCache() BBlockCache::~BBlockCache()
{ {
// walk the free list and deallocate all blocks // walk the free list and deallocate all blocks
@@ -102,6 +105,7 @@ BBlockCache::~BBlockCache()
fLocker.Unlock(); fLocker.Unlock();
} }
void * void *
BBlockCache::Get(size_t blockSize) BBlockCache::Get(size_t blockSize)
{ {
@@ -126,6 +130,7 @@ BBlockCache::Get(size_t blockSize)
return pointer; return pointer;
} }
void void
BBlockCache::Save(void *pointer, size_t blockSize) BBlockCache::Save(void *pointer, size_t blockSize)
{ {
@@ -146,5 +151,6 @@ BBlockCache::Save(void *pointer, size_t blockSize)
fLocker.Unlock(); fLocker.Unlock();
} }
void BBlockCache::_ReservedBlockCache1() {} void BBlockCache::_ReservedBlockCache1() {}
void BBlockCache::_ReservedBlockCache2() {} void BBlockCache::_ReservedBlockCache2() {}