BRE12
Macros | Enumerations | Functions
scalable_allocator.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Enumerations

enum  ScalableAllocationResult {
  TBBMALLOC_OK, TBBMALLOC_INVALID_PARAM, TBBMALLOC_UNSUPPORTED, TBBMALLOC_NO_MEMORY,
  TBBMALLOC_NO_EFFECT
}
 
enum  AllocationModeParam { TBBMALLOC_USE_HUGE_PAGES, USE_HUGE_PAGES = TBBMALLOC_USE_HUGE_PAGES, TBBMALLOC_SET_SOFT_HEAP_LIMIT }
 
enum  ScalableAllocationCmd { TBBMALLOC_CLEAN_ALL_BUFFERS, TBBMALLOC_CLEAN_THREAD_BUFFERS }
 

Functions

void *__TBB_EXPORTED_FUNC scalable_malloc (size_t size)
 The "malloc" analogue to allocate block of memory of size bytes.
 
void __TBB_EXPORTED_FUNC scalable_free (void *ptr)
 The "free" analogue to discard a previously allocated piece of memory.
 
void *__TBB_EXPORTED_FUNC scalable_realloc (void *ptr, size_t size)
 The "realloc" analogue complementing scalable_malloc.
 
void *__TBB_EXPORTED_FUNC scalable_calloc (size_t nobj, size_t size)
 The "calloc" analogue complementing scalable_malloc.
 
int __TBB_EXPORTED_FUNC scalable_posix_memalign (void **memptr, size_t alignment, size_t size)
 The "posix_memalign" analogue.
 
void *__TBB_EXPORTED_FUNC scalable_aligned_malloc (size_t size, size_t alignment)
 The "_aligned_malloc" analogue.
 
void *__TBB_EXPORTED_FUNC scalable_aligned_realloc (void *ptr, size_t size, size_t alignment)
 The "_aligned_realloc" analogue.
 
void __TBB_EXPORTED_FUNC scalable_aligned_free (void *ptr)
 The "_aligned_free" analogue.
 
size_t __TBB_EXPORTED_FUNC scalable_msize (void *ptr)
 The analogue of _msize/malloc_size/malloc_usable_size. More...
 
int __TBB_EXPORTED_FUNC scalable_allocation_mode (int param, intptr_t value)
 Set TBB allocator-specific allocation modes.
 
int __TBB_EXPORTED_FUNC scalable_allocation_command (int cmd, void *param)
 Call TBB allocator-specific commands.