removed debugger call,
added name to BLocker git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4416 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,7 +43,7 @@ BBlockCache::BBlockCache(uint32 blockCount,
|
|||||||
: fFreeList(0),
|
: fFreeList(0),
|
||||||
fBlockSize(blockSize),
|
fBlockSize(blockSize),
|
||||||
fExcessBlocks(0),
|
fExcessBlocks(0),
|
||||||
fLocker(),
|
fLocker("some BBlockCache lock"),
|
||||||
fAlloc(0),
|
fAlloc(0),
|
||||||
fFree(0)
|
fFree(0)
|
||||||
{
|
{
|
||||||
@@ -53,11 +53,10 @@ BBlockCache::BBlockCache(uint32 blockCount,
|
|||||||
fFree = &operator delete[];
|
fFree = &operator delete[];
|
||||||
break;
|
break;
|
||||||
case B_MALLOC_CACHE:
|
case B_MALLOC_CACHE:
|
||||||
|
default:
|
||||||
fAlloc = &malloc;
|
fAlloc = &malloc;
|
||||||
fFree = &free;
|
fFree = &free;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
debugger("Error, you can't create a BBlockCache with undefined allocationType\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// To properly maintain a list of free buffers, a buffer must be
|
// To properly maintain a list of free buffers, a buffer must be
|
||||||
|
|||||||
Reference in New Issue
Block a user