#include <memoryblobs.hh>
|
| using | Ptr = boost::shared_ptr< Blob > |
| |
◆ Ptr
◆ State
| Enumerator |
|---|
| UNINITIALIZED | |
| CLEAN | |
| DIRTY | |
| COMPRESSING | |
◆ Blob()
◆ compress()
| void Scroom::MemoryBlobs::Blob::compress |
( |
| ) |
|
|
private |
138 boost::mutex::scoped_lock
const lock(
mut);
Referenced by unload().
◆ create()
◆ get()
153 boost::mutex::scoped_lock
const lock(
mut);
◆ getConst()
170 boost::mutex::scoped_lock
const lock(
mut);
◆ initialize()
161 boost::mutex::scoped_lock
const lock(
mut);
164 memset(result.get(), value,
size);
◆ load()
◆ unload()
| void Scroom::MemoryBlobs::Blob::unload |
( |
| ) |
|
|
private |
119 boost::mutex::scoped_lock
const lock(
mut);
◆ UnloadData
◆ cpuBound
| boost::shared_ptr<ThreadPool> Scroom::MemoryBlobs::Blob::cpuBound |
|
private |
◆ data
| uint8_t* Scroom::MemoryBlobs::Blob::data {nullptr} |
|
private |
◆ mut
| boost::mutex Scroom::MemoryBlobs::Blob::mut |
|
private |
◆ pages
| PageList Scroom::MemoryBlobs::Blob::pages |
|
private |
◆ provider
◆ refcount
| int Scroom::MemoryBlobs::Blob::refcount {0} |
|
private |
◆ size
| size_t Scroom::MemoryBlobs::Blob::size |
|
private |
◆ state
◆ weakData
The documentation for this class was generated from the following files:
boost::shared_ptr< Blob > Ptr
Definition: memoryblobs.hh:78
int refcount
Definition: memoryblobs.hh:110
PageProvider::Ptr provider
Definition: memoryblobs.hh:102
RawPageData::WeakPtr weakData
Definition: memoryblobs.hh:107
boost::shared_ptr< uint8_t > Ptr
Definition: blockallocator.hh:23
friend class UnloadData
Definition: memoryblobs.hh:99
@ UNINITIALIZED
Definition: memoryblobs.hh:83
RawPageData::Ptr load()
Definition: memoryblobs.cc:81
#define require(expr)
Definition: assertions.hh:28
PageList compressBlob(const uint8_t *in, size_t size, const PageProvider::Ptr &provider)
Definition: blob-compression.cc:30
size_t size
Definition: memoryblobs.hh:103
boost::shared_ptr< uint8_t > Ptr
Definition: memoryblobs.hh:27
#define COMPRESS_PRIO
Definition: memoryblobs.cc:26
boost::mutex mut
Definition: memoryblobs.hh:106
@ CLEAN
Definition: memoryblobs.hh:84
ThreadPool::Ptr CpuBound()
Definition: threadpoolimpl.cc:452
@ COMPRESSING
Definition: memoryblobs.hh:86
void compress()
Definition: memoryblobs.cc:136
#define defect_message(m)
Definition: assertions.hh:43
void decompressBlob(uint8_t *out, size_t size, PageList list, const PageProvider::Ptr &provider)
Definition: blob-compression.cc:70
uint8_t * data
Definition: memoryblobs.hh:104
@ DIRTY
Definition: memoryblobs.hh:85
PageList pages
Definition: memoryblobs.hh:108
Blob(PageProvider::Ptr provider, size_t size)
Definition: memoryblobs.cc:73
State state
Definition: memoryblobs.hh:105
boost::shared_ptr< ThreadPool > cpuBound
Definition: memoryblobs.hh:109