packagefs: Remove some more HPKGv1-related classes.
These were now unreferenced following the removal of GlobalFactory and the other v1-related code, so this commit should not be any functional change.
This commit is contained in:
@@ -35,7 +35,6 @@ HAIKU_PACKAGE_FS_SOURCES =
|
|||||||
AttributeIndex.cpp
|
AttributeIndex.cpp
|
||||||
AutoPackageAttributeDirectoryCookie.cpp
|
AutoPackageAttributeDirectoryCookie.cpp
|
||||||
AutoPackageAttributes.cpp
|
AutoPackageAttributes.cpp
|
||||||
BlockBufferPoolKernel.cpp
|
|
||||||
CachedDataReader.cpp
|
CachedDataReader.cpp
|
||||||
Dependency.cpp
|
Dependency.cpp
|
||||||
Directory.cpp
|
Directory.cpp
|
||||||
@@ -84,13 +83,10 @@ HAIKU_PACKAGE_FS_SHARED_SOURCES =
|
|||||||
;
|
;
|
||||||
|
|
||||||
HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES =
|
HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES =
|
||||||
BlockBufferPoolImpl.cpp
|
|
||||||
BufferPool.cpp
|
|
||||||
DataReader.cpp
|
DataReader.cpp
|
||||||
ErrorOutput.cpp
|
ErrorOutput.cpp
|
||||||
FDDataReader.cpp
|
FDDataReader.cpp
|
||||||
HPKGDefs.cpp
|
HPKGDefs.cpp
|
||||||
PoolBuffer.cpp
|
|
||||||
PackageContentHandler.cpp
|
PackageContentHandler.cpp
|
||||||
PackageData.cpp
|
PackageData.cpp
|
||||||
PackageDataReader.cpp
|
PackageDataReader.cpp
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
|
||||||
* Distributed under the terms of the MIT License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include "BlockBufferPoolKernel.h"
|
|
||||||
|
|
||||||
|
|
||||||
BlockBufferPoolKernel::BlockBufferPoolKernel(size_t blockSize,
|
|
||||||
uint32 maxCachedBlocks)
|
|
||||||
:
|
|
||||||
BlockBufferPoolImpl(blockSize, maxCachedBlocks, this)
|
|
||||||
{
|
|
||||||
mutex_init(&fLock, "BlockBufferPool");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
BlockBufferPoolKernel::~BlockBufferPoolKernel()
|
|
||||||
{
|
|
||||||
mutex_destroy(&fLock);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bool
|
|
||||||
BlockBufferPoolKernel::Lock()
|
|
||||||
{
|
|
||||||
mutex_lock(&fLock);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
BlockBufferPoolKernel::Unlock()
|
|
||||||
{
|
|
||||||
mutex_unlock(&fLock);
|
|
||||||
}
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009, Ingo Weinhold, [email protected].
|
|
||||||
* Distributed under the terms of the MIT License.
|
|
||||||
*/
|
|
||||||
#ifndef BLOCK_BUFFER_POOL_KERNEL_H
|
|
||||||
#define BLOCK_BUFFER_POOL_KERNEL_H
|
|
||||||
|
|
||||||
|
|
||||||
#include <lock.h>
|
|
||||||
|
|
||||||
#include <package/hpkg/BlockBufferPoolImpl.h>
|
|
||||||
#include <package/hpkg/BufferPool.h>
|
|
||||||
|
|
||||||
|
|
||||||
using BPackageKit::BHPKG::BBufferPoolLockable;
|
|
||||||
using BPackageKit::BHPKG::BPrivate::BlockBufferPoolImpl;
|
|
||||||
|
|
||||||
|
|
||||||
class BlockBufferPoolKernel : public BlockBufferPoolImpl, BBufferPoolLockable {
|
|
||||||
public:
|
|
||||||
BlockBufferPoolKernel(size_t blockSize,
|
|
||||||
uint32 maxCachedBlocks);
|
|
||||||
virtual ~BlockBufferPoolKernel();
|
|
||||||
|
|
||||||
virtual bool Lock();
|
|
||||||
virtual void Unlock();
|
|
||||||
|
|
||||||
private:
|
|
||||||
mutex fLock;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
#endif // BLOCK_BUFFER_POOL_KERNEL_H
|
|
||||||
Reference in New Issue
Block a user