13 #ifndef __SAS_SIMPLE_HEAP_H
14 #define __SAS_SIMPLE_HEAP_H
58 block_size_t heap_size);
95 extern __C__ block_size_t
142 block_size_t alloc_size);
202 extern __C__ block_size_t
217 block_size_t alloc_size);
235 block_size_t alloc_size);
__C__ void SASSimpleHeapNearDeallocNoLock(void *memAddr, long allocSize)
Deallocate the memory block memAddr of size allocSize.
__C__ SASSimpleHeap_t SASSimpleHeapCreate(block_size_t heap_size)
Allocate a SAS block large enough to contain the requested SAS Simple Heap.
__C__ SASSimpleHeap_t SASSimpleHeapNearFind(void *nearObj)
Find the associate SASSimpleHeap_t control block near nearObj.
__C__ void * SASSimpleHeapAllocNoLock(SASSimpleHeap_t heap, block_size_t alloc_size)
Allocate a block of alloc_size bytes from Simple Heap heap.
__C__ int SASSimpleHeapFree(SASSimpleHeap_t heap, void *free_block, block_size_t alloc_size)
Deallocate the memory block free_block of size alloc_size from Simple Heap heap.
__C__ int SASSimpleHeapFreeNoLock(SASSimpleHeap_t heap, void *free_block, block_size_t alloc_size)
Deallocate the memory block free_block of size alloc_size from Simple Heap heap.
__C__ void * SASSimpleHeapAlloc(SASSimpleHeap_t heap, block_size_t alloc_size)
Allocate a block of alloc_size bytes from Simple Heap heap.
#define __C__
ignore this macro behind the curtain
Definition: sasmsync.h:32
__C__ void SASSimpleHeapNearDealloc(void *memAddr, long allocSize)
Deallocate the memory block memAddr of size allocSize.
__C__ void * SASSimpleHeapNearAlloc(void *nearObj, long allocSize)
Allocate a block of alloc_size bytes from Simple Heap nearObj.
__C__ int SASSimpleHeapEmptyNoLock(SASSimpleHeap_t heap)
Return if the Simple Heap heap has not space left.
__C__ int SASSimpleHeapEmpty(SASSimpleHeap_t heap)
Return if the Simple Heap heap has no space left.
void * SASSimpleHeap_t
Handle to SAS Simple Space. The type is SAS_RUNTIME_SIMPLEHEAP.
Definition: sassimpleheap.h:34
__C__ block_size_t SASSimpleHeapFreeSpace(SASSimpleHeap_t heap)
Return the available space from Simple Heap heap.
__C__ SASSimpleHeap_t SASSimpleHeapInit(void *heap_block, sas_type_t sasType, block_size_t heap_size)
Initialize a shared storage as a simple heap.
__C__ int SASSimpleHeapDestroyNoLock(SASSimpleHeap_t heap)
Destroy a SASSimpleHeap_t and free the shared storage block.
__C__ int SASSimpleHeapDestroy(SASSimpleHeap_t heap)
Destroy a SASSimpleHeap_t and free the shared storage block.
__C__ void * SASSimpleHeapNearAllocNoLock(void *nearObj, long allocSize)
Allocate a block of allocSize bytes from Simple Heap heap.
__C__ block_size_t SASSimpleHeapFreeSpaceNoLock(SASSimpleHeap_t heap)
Return the available space from Simple Heap heap.