Home ⌂Doc Index ◂Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
scalable_allocator.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for scalable_allocator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __TBB_EXPORTED_FUNC
 

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, TBBMALLOC_SET_HUGE_SIZE_THRESHOLD }
 
enum  ScalableAllocationCmd { TBBMALLOC_CLEAN_ALL_BUFFERS, TBBMALLOC_CLEAN_THREAD_BUFFERS }
 

Functions

void *__TBB_EXPORTED_FUNC scalable_malloc (size_t size)
 
void __TBB_EXPORTED_FUNC scalable_free (void *ptr)
 
void *__TBB_EXPORTED_FUNC scalable_realloc (void *ptr, size_t size)
 
void *__TBB_EXPORTED_FUNC scalable_calloc (size_t nobj, size_t size)
 
int __TBB_EXPORTED_FUNC scalable_posix_memalign (void **memptr, size_t alignment, size_t size)
 
void *__TBB_EXPORTED_FUNC scalable_aligned_malloc (size_t size, size_t alignment)
 
void *__TBB_EXPORTED_FUNC scalable_aligned_realloc (void *ptr, size_t size, size_t alignment)
 
void __TBB_EXPORTED_FUNC scalable_aligned_free (void *ptr)
 
size_t __TBB_EXPORTED_FUNC scalable_msize (void *ptr)
 
int __TBB_EXPORTED_FUNC scalable_allocation_mode (int param, intptr_t value)
 
int __TBB_EXPORTED_FUNC scalable_allocation_command (int cmd, void *param)
 

Macro Definition Documentation

◆ __TBB_EXPORTED_FUNC

#define __TBB_EXPORTED_FUNC

Definition at line 38 of file scalable_allocator.h.

Enumeration Type Documentation

◆ AllocationModeParam

Enumerator
TBBMALLOC_USE_HUGE_PAGES 
USE_HUGE_PAGES 
TBBMALLOC_SET_SOFT_HEAP_LIMIT 
TBBMALLOC_SET_HUGE_SIZE_THRESHOLD 

Definition at line 90 of file scalable_allocator.h.

90  {
91  TBBMALLOC_USE_HUGE_PAGES, /* value turns using huge pages on and off */
92  /* deprecated, kept for backward compatibility only */
94  /* try to limit memory consumption value (Bytes), clean internal buffers
95  if limit is exceeded, but not prevents from requesting memory from OS */
97  /* Lower bound for the size (Bytes), that is interpreted as huge
98  * and not released during regular cleanup operations. */
AllocationModeParam

◆ ScalableAllocationCmd

Enumerator
TBBMALLOC_CLEAN_ALL_BUFFERS 
TBBMALLOC_CLEAN_THREAD_BUFFERS 

Definition at line 106 of file scalable_allocator.h.

106  {
107  /* Clean internal allocator buffers for all threads.
108  Returns TBBMALLOC_NO_EFFECT if no buffers cleaned,
109  TBBMALLOC_OK if some memory released from buffers. */
111  /* Clean internal allocator buffer for current thread only.
112  Return values same as for TBBMALLOC_CLEAN_ALL_BUFFERS. */
ScalableAllocationCmd

◆ ScalableAllocationResult

Enumerator
TBBMALLOC_OK 
TBBMALLOC_INVALID_PARAM 
TBBMALLOC_UNSUPPORTED 
TBBMALLOC_NO_MEMORY 
TBBMALLOC_NO_EFFECT 

Definition at line 80 of file scalable_allocator.h.


Copyright © 2005-2020 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.