#include <OS_Memory.h>
Inheritance diagram for ACE_OS_Memory:

Static Public Methods | |
| void * | sbrk (int brk) |
| void * | calloc (size_t elements, size_t sizeof_elements) |
| void * | malloc (size_t) |
| void * | realloc (void *, size_t) |
| void | free (void *) |
Definition at line 200 of file OS_Memory.h.
|
||||||||||||
|
Definition at line 23 of file OS_Memory.cpp. References ACE_CALLOC_FUNC, and ACE_MALLOC_FUNC.
00024 {
00025 #if !defined (ACE_HAS_WINCE)
00026 return ACE_CALLOC_FUNC (elements, sizeof_elements);
00027 #else
00028 // @@ This will probably not work since it doesn't consider
00029 // alignment properly.
00030 return ACE_MALLOC_FUNC (elements * sizeof_elements);
00031 #endif /* ACE_HAS_WINCE */
00032 }
|
|
|
|
Definition at line 17 of file OS_Memory.cpp. References ACE_MALLOC_FUNC. Referenced by ACE_ATM_QoS::ACE_ATM_QoS, ACE_Name_Options::ACE_Name_Options, ACE_ATM_QoS::construct_options, ACE_ATM_Stream::get_vpi_vci, ACE_Static_Object_Lock::instance, ACE_Lib_Find::ldfind, ACE_OS::mkdir, ACE_OS_Dirent::readdir_emulation, ACE_OS_Dirent::scandir_emulation, ACE_OS_String::strdup, and ACE::strndup.
00018 {
00019 return ACE_MALLOC_FUNC (nbytes);
00020 }
|
|
||||||||||||
|
Definition at line 35 of file OS_Memory.cpp. References ACE_MALLOC_T, and ACE_REALLOC_FUNC. Referenced by ACE_OS_Dirent::scandir_emulation.
00036 {
00037 return ACE_REALLOC_FUNC (ACE_MALLOC_T (ptr), nbytes);
00038 }
|
|
|
Definition at line 12 of file OS_Memory.inl. References sbrk. Referenced by ACE_Sbrk_Memory_Pool::acquire, and sbrk.
00013 {
00014 #if defined (ACE_LACKS_SBRK)
00015 ACE_UNUSED_ARG (brk);
00016 ACE_NOTSUP_RETURN (0);
00017 #else
00018 ACE_OSCALL_RETURN (::sbrk (brk), void *, 0);
00019 #endif /* VXWORKS */
00020 }
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002