#include "ace/OS_Errno.h"
#include "ace/Basic_Types.h"
#include "ace/os_include/os_stddef.h"
#include "ace/OS_NS_stdlib.h"
Include dependency graph for OS_Memory.h:
This graph shows which files directly or indirectly include this file:
Defines | |
#define | ACE_MALLOC_FUNC ::malloc |
#define | ACE_CALLOC_FUNC ::calloc |
#define | ACE_FREE_FUNC ::free |
#define | ACE_REALLOC_FUNC ::realloc |
#define | ACE_del_bad_alloc |
#define | ACE_NEW_RETURN(POINTER, CONSTRUCTOR, RET_VAL) |
#define | ACE_NEW(POINTER, CONSTRUCTOR) |
#define | ACE_NEW_NORETURN(POINTER, CONSTRUCTOR) |
#define | ACE_throw_bad_alloc |
Functions | |
Efficiently compute aligned pointers to powers of 2 boundaries. | |
uintptr_t | ACE_align_binary (uintptr_t ptr, uintptr_t alignment) |
Return the next integer aligned to a required boundary. | |
char * | ACE_ptr_align_binary (char const *ptr, uintptr_t alignment) |
Return the next address aligned to a required boundary. | |
char * | ACE_ptr_align_binary (unsigned char const *ptr, uintptr_t alignment) |
Return the next address aligned to a required boundary. | |
Variables | |
ACE_BEGIN_VERSIONED_NAMESPACE_DECL typedef void * | ACE_MALLOC_T |
#define ACE_CALLOC_FUNC ::calloc |
#define ACE_del_bad_alloc |
#define ACE_FREE_FUNC ::free |
#define ACE_MALLOC_FUNC ::malloc |
#define ACE_NEW | ( | POINTER, | |||
CONSTRUCTOR | ) |
Value:
do { POINTER = new CONSTRUCTOR; \ if (POINTER == 0) { errno = ENOMEM; return; } \ } while (0)
#define ACE_NEW_NORETURN | ( | POINTER, | |||
CONSTRUCTOR | ) |
Value:
do { POINTER = new CONSTRUCTOR; \ if (POINTER == 0) { errno = ENOMEM; } \ } while (0)
#define ACE_NEW_RETURN | ( | POINTER, | |||
CONSTRUCTOR, | |||||
RET_VAL | ) |
Value:
do { POINTER = new CONSTRUCTOR; \ if (POINTER == 0) { errno = ENOMEM; return RET_VAL; } \ } while (0)
#define ACE_REALLOC_FUNC ::realloc |
#define ACE_throw_bad_alloc |
Value:
void* gcc_will_complain_if_literal_0_is_returned = 0; \ return gcc_will_complain_if_literal_0_is_returned
uintptr_t ACE_align_binary | ( | uintptr_t | ptr, | |
uintptr_t | alignment | |||
) | [inline] |
Return the next integer aligned to a required boundary.
ptr | the base pointer | |
alignment | the required alignment |
char* ACE_ptr_align_binary | ( | unsigned char const * | ptr, | |
uintptr_t | alignment | |||
) | [inline] |
Return the next address aligned to a required boundary.
char* ACE_ptr_align_binary | ( | char const * | ptr, | |
uintptr_t | alignment | |||
) | [inline] |
Return the next address aligned to a required boundary.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL typedef void* ACE_MALLOC_T |