|
| | | | Q D E V _ M E M _ P O O L
| | | | | SOURCE: qdev_structures.txt 1.10 (15/08/2014) English struct qdev_mem_pool
{
struct SignalSemaphore mp_sem;
LONG mp_init;
void *mp_pool;
LONG mp_pudsize;
LONG mp_tressize;
ULONG mp_allocs;
ULONG mp_total;
ULONG mp_oflags;
};
mp_sem - Semaphore that protects from allocating same memory region
twice as requested from concurrent tasks.
mp_init - Base parameters(mp_pudsize, mp_tressize) latch.
mp_pool - Memory pool pointer. This gets allocated using system function.
mp_pudsize
- Puddle size. Has the very same meaning as the OS related func.
mp_tressize
- Treshold size. Has the very same meaning as the OS pool func.
mp_allocs
- Allocation count for this memory pool. Useful when doing memory
leak detection.
mp_total - How much memory was taken from system so far. Memory leaks can
easily be detected without using special software.
mp_oflags
- Originally passed memory flags.
| |
| | | | |
|