Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

OS_Memory.h File Reference

#include "ace/pre.h"
#include "ace/OS_Export.h"
#include "ace/OS_Errno.h"
#include <stddef.h>
#include "ace/post.h"

Include dependency graph for OS_Memory.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  ACE_OS_Memory
 This class is a wrapper for dynamic memory operations. More...


Defines

#define ACE_MALLOC_ALIGN   ((int) sizeof (long))
#define ACE_MALLOC_FUNC   ::malloc
#define ACE_CALLOC_FUNC   ::calloc
#define ACE_FREE_FUNC   ::free
#define ACE_REALLOC_FUNC   ::realloc
#define ACE_NEW_RETURN(POINTER, CONSTRUCTOR, RET_VAL)
#define ACE_NEW(POINTER, CONSTRUCTOR)
#define ACE_NEW_NORETURN(POINTER, CONSTRUCTOR)
#define ACE_throw_bad_alloc

Typedefs

typedef void * ACE_MALLOC_T


Detailed Description

Id:
OS_Memory.h,v 1.1.1.3 2003/02/21 18:36:32 chad Exp

Author:
Doug Schmidt <schmidt@cs.wustl.edu> , Jesper S. M|ller<stophph@diku.dk> , and a cast of thousands...

Definition in file OS_Memory.h.


Define Documentation

#define ACE_CALLOC_FUNC   ::calloc
 

Definition at line 55 of file OS_Memory.h.

Referenced by ACE_OS_Memory::calloc.

#define ACE_FREE_FUNC   ::free
 

Definition at line 58 of file OS_Memory.h.

Referenced by ACE_OS_Memory::free.

#define ACE_MALLOC_ALIGN   ((int) sizeof (long))
 

Definition at line 32 of file OS_Memory.h.

Referenced by ACE_Cached_Allocator::ACE_Cached_Allocator, ACE_PI_Control_Block::print_alignment_info, and ACE_Control_Block::print_alignment_info.

#define ACE_MALLOC_FUNC   ::malloc
 

Definition at line 52 of file OS_Memory.h.

Referenced by ACE_OS_Memory::calloc, and ACE_OS_Memory::malloc.

#define ACE_NEW POINTER,
CONSTRUCTOR   
 

Value:

do { POINTER = new CONSTRUCTOR; \
     if (POINTER == 0) { errno = ENOMEM; return; } \
   } while (0)

Definition at line 179 of file OS_Memory.h.

Referenced by ACE_Activation_Queue::ACE_Activation_Queue, ACE_ARGV::ACE_ARGV, ACE_Based_Pointer_Repository::ACE_Based_Pointer_Repository, ACE_Bounded_Set::ACE_Bounded_Set, ACE_Bounded_Stack::ACE_Bounded_Stack, ACE_Cached_Allocator::ACE_Cached_Allocator, ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::ACE_Cached_Connect_Strategy, ACE_Caching_Strategy_Adapter::ACE_Caching_Strategy_Adapter, ACE_Configuration_Heap::ACE_Configuration_Heap, ACE_Dynamic_Cached_Allocator::ACE_Dynamic_Cached_Allocator, ACE_Future_Set::ACE_Future_Set, ACE_Handler_Caching_Utility::ACE_Handler_Caching_Utility, ACE_IOStream::ACE_IOStream, ACE_Lock_Adapter::ACE_Lock_Adapter, ACE_Logging_Strategy::ACE_Logging_Strategy, ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::ACE_Malloc_T, ACE_Naming_Context::ACE_Naming_Context, ACE_Null_Caching_Utility::ACE_Null_Caching_Utility, ACE_Object_Manager::ACE_Object_Manager, ACE_OS_Exit_Info::ACE_OS_Exit_Info, ACE_Pair_Caching_Utility::ACE_Pair_Caching_Utility, ACE_POSIX_Asynch_Read_Dgram_Result::ACE_POSIX_Asynch_Read_Dgram_Result, ACE_POSIX_Asynch_Transmit_Handler::ACE_POSIX_Asynch_Transmit_Handler, ACE_Proactor::ACE_Proactor, ACE_Process_Options::ACE_Process_Options, ACE_Reactor::ACE_Reactor, ACE_Recyclable_Handler_Caching_Utility::ACE_Recyclable_Handler_Caching_Utility, ACE_Refcounted_Recyclable_Handler_Caching_Utility::ACE_Refcounted_Recyclable_Handler_Caching_Utility, ACE_Sample_History::ACE_Sample_History, ACE_System_Time::ACE_System_Time, ACE_Task< ACE_SYNCH_USE >::ACE_Task, ACE_Thread_Descriptor::ACE_Thread_Descriptor, ACE_Thread_Exit_Maybe::ACE_Thread_Exit_Maybe, ACE_Thread_Timer_Queue_Adapter::ACE_Thread_Timer_Queue_Adapter, ACE_Timeprobe::ACE_Timeprobe, ACE_Timer_Hash_T::ACE_Timer_Hash_T, ACE_Timer_Heap_T::ACE_Timer_Heap_T, ACE_Timer_List_T::ACE_Timer_List_T, ACE_Timer_Queue_T::ACE_Timer_Queue_T, ACE_TLI::ACE_TLI, ACE_WIN32_Asynch_Read_Dgram_Result::ACE_WIN32_Asynch_Read_Dgram_Result, ACE_Locked_Free_List::alloc, ACE_POSIX_AIOCB_Proactor::create_notify_manager, ACE_Timer_Heap_T::grow_heap, ACE_Arg_Shifter::init, ACE_Priority_Reactor::init_bucket, ACE_Timer_Wheel_T::open_i, ACE_Bounded_Set::operator=, ACE_Bounded_Stack::operator=, ACE_QtReactor::reset_timeout, ACE_Proactor::timer_queue, and ACE_Future_Set::update.

#define ACE_NEW_NORETURN POINTER,
CONSTRUCTOR   
 

Value:

do { POINTER = new CONSTRUCTOR; \
     if (POINTER == 0) { errno = ENOMEM; } \
   } while (0)

Definition at line 183 of file OS_Memory.h.

#define ACE_NEW_RETURN POINTER,
CONSTRUCTOR,
RET_VAL   
 

Value:

do { POINTER = new CONSTRUCTOR; \
     if (POINTER == 0) { errno = ENOMEM; return RET_VAL; } \
   } while (0)

Definition at line 175 of file OS_Memory.h.

Referenced by ACE_WIN32_Asynch_Accept::accept, ACE_POSIX_Asynch_Accept::accept, ACE_Asynch_Acceptor::accept, ACE_Local_Memory_Pool::acquire, ACE_Timer_Heap_T::alloc_node, ACE_Thread_Manager::append_thr, ACE_OS::argv_to_string, ACE_Thread_Descriptor::at_exit, ACE_Map_Manager_Adapter::begin_impl, ACE_Hash_Map_Manager_Ex_Adapter::begin_impl, ACE_Active_Map_Manager_Adapter::begin_impl, ACE_Map_Impl::begin_impl, ACE_New_Allocator::calloc, ACE_Timer_Hash_T::cancel, ACE_NS_WString::char_rep, ACE_Message_Block::clone, ACE_Map_Manager_Reverse_Iterator_Adapter::clone, ACE_Map_Manager_Iterator_Adapter::clone, ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::clone, ACE_Hash_Map_Manager_Ex_Iterator_Adapter::clone, ACE_Active_Map_Manager_Reverse_Iterator_Adapter::clone, ACE_Active_Map_Manager_Iterator_Adapter::clone, ACE_Map_Impl_Reverse_Iterator_Adapter::clone, ACE_Map_Impl_Iterator_Adapter::clone, ACE_Process_Options::command_line, ACE_WIN32_Asynch_Connect::connect, ACE_POSIX_Asynch_Connect::connect, ACE_Stream::control, ACE_Filecache::create, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::create_AST, ACE_WIN32_Proactor::create_asynch_accept, ACE_POSIX_Proactor::create_asynch_accept, ACE_WIN32_Proactor::create_asynch_accept_result, ACE_POSIX_Proactor::create_asynch_accept_result, ACE_WIN32_Proactor::create_asynch_connect, ACE_POSIX_Proactor::create_asynch_connect, ACE_WIN32_Proactor::create_asynch_connect_result, ACE_POSIX_Proactor::create_asynch_connect_result, ACE_WIN32_Proactor::create_asynch_read_dgram, ACE_POSIX_Proactor::create_asynch_read_dgram, ACE_WIN32_Proactor::create_asynch_read_dgram_result, ACE_POSIX_Proactor::create_asynch_read_dgram_result, ACE_WIN32_Proactor::create_asynch_read_file, ACE_POSIX_Proactor::create_asynch_read_file, ACE_WIN32_Proactor::create_asynch_read_file_result, ACE_POSIX_Proactor::create_asynch_read_file_result, ACE_WIN32_Proactor::create_asynch_read_stream, ACE_POSIX_Proactor::create_asynch_read_stream, ACE_WIN32_Proactor::create_asynch_read_stream_result, ACE_POSIX_Proactor::create_asynch_read_stream_result, ACE_WIN32_Proactor::create_asynch_timer, ACE_POSIX_Proactor::create_asynch_timer, ACE_WIN32_Proactor::create_asynch_transmit_file, ACE_POSIX_Proactor::create_asynch_transmit_file, ACE_WIN32_Proactor::create_asynch_transmit_file_result, ACE_POSIX_Proactor::create_asynch_transmit_file_result, ACE_WIN32_Proactor::create_asynch_write_dgram, ACE_POSIX_Proactor::create_asynch_write_dgram, ACE_WIN32_Proactor::create_asynch_write_dgram_result, ACE_POSIX_Proactor::create_asynch_write_dgram_result, ACE_WIN32_Proactor::create_asynch_write_file, ACE_POSIX_Proactor::create_asynch_write_file, ACE_WIN32_Proactor::create_asynch_write_file_result, ACE_POSIX_Proactor::create_asynch_write_file_result, ACE_WIN32_Proactor::create_asynch_write_stream, ACE_POSIX_Proactor::create_asynch_write_stream, ACE_WIN32_Proactor::create_asynch_write_stream_result, ACE_POSIX_Proactor::create_asynch_write_stream_result, ACE_ARGV::create_buf_from_queue, ACE_Message_Queue_Factory::create_deadline_message_queue, ACE_Message_Queue_Factory::create_laxity_message_queue, ACE_Local_Name_Space::create_manager_i, ACE_POSIX_AIOCB_Proactor::create_result_aiocb_list, ACE_Service_Config::create_service_type_impl, ACE_MEM_SAP::create_shm_malloc, ACE_Message_Queue_Factory::create_static_message_queue, ACE_Base64::decode, ACE_OS::dlsym, ACE_Message_Block::duplicate, ACE_Base64::encode, ACE_Map_Manager_Adapter::end_impl, ACE_Hash_Map_Manager_Ex_Adapter::end_impl, ACE_Active_Map_Manager_Adapter::end_impl, ACE_Map_Impl::end_impl, ACE_Message_Queue_Ex::enqueue_deadline, ACE_Message_Queue_Ex::enqueue_head, ACE_Message_Queue_Ex::enqueue_prio, ACE_Message_Queue_Ex::enqueue_tail, ACE_Configuration_Heap::enumerate_sections, ACE_Configuration_Heap::enumerate_values, ACE::execname, ACE_Capabilities::fillent, ACE_Configuration_Heap::get_binary_value, ACE_Sock_Connect::get_ip_interfaces, ACE_Token_Invariant_Manager::get_mutex, ACE_ATM_Stream::get_peer_name, ACE_Token_Invariant_Manager::get_rwlock, ACE_OutputCDR::grow_and_adjust, ACE_Sig_Handlers::handler, ACE_Registry_ImpExp::import_config, ACE_OS_Object_Manager::init, ACE_Object_Manager::init, ACE_MEM_IO::init, ACE_MT_MEM_IO::init, ACE_Logging_Strategy::init, ACE_Log_Msg_Manager::init_backend, ACE_Service_Config::init_svc_conf_file_queue, ACE_Cleanup_Info_Node::insert, ACE_Future_Set::insert, ACE_RB_Tree::insert_i, ACE_Filecache::insert_i, ACE_Token_Manager::instance, ACE_Token_Invariant_Manager::instance, ACE_Thread_Manager::instance, ACE_Thread_Exit::instance, ACE_DLL_Singleton_T::instance, ACE_Unmanaged_TSS_Singleton::instance, ACE_TSS_Singleton::instance, ACE_Unmanaged_Singleton::instance, ACE_Singleton::instance, ACE_Sig_Handlers_Set::instance, ACE_Service_Repository::instance, ACE_Reactor::instance, ACE_Process_Manager::instance, ACE_Proactor::instance, ACE_OS_Object_Manager::instance, ACE_TSS_Cleanup::instance, ACE_Static_Object_Lock::instance, ACE_Object_Manager::instance, ACE_Log_Msg::instance, ACE_Framework_Repository::instance, ACE_Filecache::instance, ACE_ODB::instance, ACE_DLL_Manager::instance, ACE_Refcounted_Auto_Ptr_Rep::internal_create, ACE_Future_Rep::internal_create, ACE_Bound_Ptr_Counter::internal_create, ACE_OS::ioctl, ACE_Lib_Find::ldname, ACE_Codeset_Registry::locale_to_registry_i, ACE_Log_Msg::log, ACE_Log_Msg::log_hexdump, ACE_Asynch_Connector::make_handler, ACE_Asynch_Acceptor::make_handler, ACE_Creation_Strategy::make_svc_handler, ACE_DLL_Strategy::make_svc_handler, ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::make_svc_handler, ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::make_svc_handler, ACE_TSS::make_TSS_TYPE, ACE_TSS_Connection::make_TSS_TYPE, ACE_TSS_TPQ_Entry::make_TSS_TYPE, ACE_New_Allocator::malloc, ACE_SOCK_Dgram_Bcast::mk_broadcast, ACE_Configuration_Heap::new_section, ACE_WFMO_Reactor_Notify::notify, ACE_Select_Reactor_Notify::notify, ACE_Dev_Poll_Reactor_Notify::notify, ACE_WFMO_Reactor::open, ACE_WFMO_Reactor_Handler_Repository::open, ACE_TLI_Acceptor::open, ACE_TLI_Request_Queue::open, ACE_Stream::open, ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::open, ACE_Singleton_Strategy::open, ACE_Service_Repository::open, ACE_Select_Reactor_T::open, ACE_Select_Reactor_Notify::open, ACE_Select_Reactor_Handler_Repository::open, ACE_Naming_Context::open, ACE_Module< ACE_SYNCH_USE >::open, ACE_Framework_Repository::open, ACE_DLL_Manager::open, ACE_Dev_Poll_Reactor::open, ACE_Dev_Poll_Reactor_Handler_Repository::open, ACE_Dev_Poll_Reactor_Notify::open, ACE_Strategy_Connector::open, ACE_Configuration_Heap::open, ACE_Oneshot_Acceptor::open, ACE_Strategy_Acceptor::open, ACE_DLL_Manager::open_dll, ACE_Configuration_Heap::open_simple_section, ACE_OS_Dirent::opendir, ACE_OS_Dirent::opendir_emulation, ACE_Service_Config::parse_args, ACE_WIN32_Proactor::post_wakeup_completions, ACE_POSIX_Proactor::post_wakeup_completions, ACE_Service_Config::process_directive, ACE_OS::putmsg, ACE_Map_Manager_Adapter::rbegin_impl, ACE_Hash_Map_Manager_Ex_Adapter::rbegin_impl, ACE_Active_Map_Manager_Adapter::rbegin_impl, ACE_Map_Impl::rbegin_impl, ACE_WIN32_Asynch_Read_File::read, ACE_WIN32_Asynch_Read_Stream::read, ACE_POSIX_Asynch_Read_File::read, ACE_POSIX_Asynch_Read_Stream::read, ACE_InputCDR::read_string, ACE_InputCDR::read_wstring, ACE_WIN32_Asynch_Read_File::readv, ACE_WIN32_Asynch_Read_Stream::readv, ACE_WIN32_Asynch_Read_Dgram::recv, ACE_SPIPE_Stream::recv, ACE_SOCK_IO::recv, ACE_SOCK_Dgram::recv, ACE_FILE_IO::recv, ACE_DEV_IO::recv, ACE::recv, ACE_SOCK_IO::recvv, ACE_FILE_IO::recvv, ACE_Thread_Manager::register_as_terminated, ACE_Sig_Handlers::register_handler, ACE_XtReactor::register_handler_i, ACE_TkReactor::register_handler_i, ACE_QtReactor::register_handler_i, ACE_Codeset_Registry::registry_to_locale_i, ACE_TP_Reactor::remove_handler, ACE_Map_Manager_Adapter::rend_impl, ACE_Hash_Map_Manager_Ex_Adapter::rend_impl, ACE_Active_Map_Manager_Adapter::rend_impl, ACE_Map_Impl::rend_impl, ACE_String_Base::rep, ACE_Streambuf::reset_get_buffer, ACE_Streambuf::reset_put_buffer, ACE_Process_Manager::resize, ACE_Remote_Name_Space::resolve, ACE_Local_Name_Space::resolve_i, ACE_Timer_Hash_T::schedule, ACE_OS::sema_init, ACE_WIN32_Asynch_Write_Dgram::send, ACE_UPIPE_Stream::send, ACE_SPIPE_Stream::send, ACE_SOCK_IO::send, ACE_SOCK_Dgram::send, ACE_FILE_IO::send, ACE_DEV_IO::send, ACE::send, ACE_Future_Rep::set, ACE_Process_Manager::spawn, ACE_Thread_Manager::spawn_i, ACE_Service_Config::static_svcs, ACE_OS::string_to_argv, ACE::strnew, ACE::strnnew, ACE_OS::thr_create, ACE_WIN32_Asynch_Transmit_File::transmit_file, ACE_POSIX_Asynch_Transmit_File::transmit_file, ACE_TSS_Cleanup::tss_keys, ACE_NS_WString::ushort_rep, ACE_Process_Manager::wait, ACE_Thread_Manager::wait_grp, ACE_Thread_Manager::wait_task, ACE_WIN32_Asynch_Write_File::write, ACE_WIN32_Asynch_Write_Stream::write, ACE_POSIX_Asynch_Write_File::write, ACE_POSIX_Asynch_Write_Stream::write, ACE_OutputCDR::write_octet_array_mb, ACE_WIN32_Asynch_Write_File::writev, and ACE_WIN32_Asynch_Write_Stream::writev.

#define ACE_REALLOC_FUNC   ::realloc
 

Definition at line 61 of file OS_Memory.h.

Referenced by ACE_OS_Memory::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

Definition at line 188 of file OS_Memory.h.

Referenced by ACE_Refcounted_Auto_Ptr_Rep::create, ACE_Future_Rep::create, ACE_Bound_Ptr_Counter::create_strong, ACE_Bound_Ptr_Counter::create_weak, ACE_Svc_Handler::operator new, and ACE_Future::operator new.


Typedef Documentation

typedef void* ACE_MALLOC_T
 

Definition at line 67 of file OS_Memory.h.

Referenced by ACE_TLI_Acceptor::close, ACE_OS_Memory::free, ACE_OS_Memory::realloc, and ACE_INET_Addr::string_to_addr.


Generated on Mon Jun 16 11:59:33 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002