mirror of
https://github.com/ksherlock/profuse.git
synced 2026-03-12 02:41:41 +00:00
use shared_ptr for device, cache
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@345 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
@@ -19,8 +19,13 @@ using namespace Device;
|
||||
using ProFUSE::Exception;
|
||||
using ProFUSE::POSIXException;
|
||||
|
||||
BlockCachePointer MappedBlockCache::Create(BlockDevicePointer device, void *data)
|
||||
{
|
||||
return BlockCachePointer(new MappedBlockCache(device, data));
|
||||
}
|
||||
|
||||
MappedBlockCache::MappedBlockCache(BlockDevice *device, void *data) :
|
||||
|
||||
MappedBlockCache::MappedBlockCache(BlockDevicePointer device, void *data) :
|
||||
BlockCache(device)
|
||||
{
|
||||
_data = (uint8_t *)data;
|
||||
|
||||
Reference in New Issue
Block a user