mirror of
https://review.haiku-os.org/haiku
synced 2025-02-01 03:06:08 +01:00
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:
parent
d7c7d50e8f
commit
b934184a12
@ -35,7 +35,6 @@ HAIKU_PACKAGE_FS_SOURCES =
|
||||
AttributeIndex.cpp
|
||||
AutoPackageAttributeDirectoryCookie.cpp
|
||||
AutoPackageAttributes.cpp
|
||||
BlockBufferPoolKernel.cpp
|
||||
CachedDataReader.cpp
|
||||
Dependency.cpp
|
||||
Directory.cpp
|
||||
@ -84,13 +83,10 @@ HAIKU_PACKAGE_FS_SHARED_SOURCES =
|
||||
;
|
||||
|
||||
HAIKU_PACKAGE_FS_PACKAGE_READER_SOURCES =
|
||||
BlockBufferPoolImpl.cpp
|
||||
BufferPool.cpp
|
||||
DataReader.cpp
|
||||
ErrorOutput.cpp
|
||||
FDDataReader.cpp
|
||||
HPKGDefs.cpp
|
||||
PoolBuffer.cpp
|
||||
PackageContentHandler.cpp
|
||||
PackageData.cpp
|
||||
PackageDataReader.cpp
|
||||
|
@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
||||
* 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, ingo_weinhold@gmx.de.
|
||||
* 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
|
Loading…
x
Reference in New Issue
Block a user