Global_Macros.h File Reference

#include "ace/config-lite.h"
#include "ace/Assert.h"
#include "ace/OS_Errno.h"

Include dependency graph for Global_Macros.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.

CORBA namespace macros.

CORBA namespace macros.

Deprecated:
These macros were formerly used by TAO but are now deprecated, and only remain to retain some backward compatibility. They will be removed in a future ACE release.


#define ACE_CORBA_1(NAME)   CORBA::NAME
#define ACE_CORBA_2(TYPE, NAME)   CORBA::TYPE::NAME
#define ACE_CORBA_3(TYPE, NAME)   CORBA::TYPE::NAME

Service Configurator macros

The following macros are used to define helper objects used in ACE's Service Configurator framework, which is described in Chapter 5 of C++NPv2 <www.cs.wustl.edu/~schmidt/ACE/book2/>. This framework implements the Component Configurator pattern, which is described in Chapter 2 of POSA2 <www.cs.wustl.edu/~schmidt/POSA/>. The intent of this pattern is to allow developers to dynamically load and configure services into a system. With a little help from this macros statically linked services can also be dynamically configured.

More details about this component are available in the documentation of the ACE_Service_Configurator class and also ACE_Dynamic_Service.

Notice that in all the macros the SERVICE_CLASS parameter must be the name of a class derived from ACE_Service_Object.

#define ACE_STATIC_SVC_DECLARE(SERVICE_CLASS)   extern ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS ;
#define ACE_STATIC_SVC_DECLARE_EXPORT(EXPORT_NAME, SERVICE_CLASS)   extern EXPORT_NAME##_Export ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS;
#define ACE_STATIC_SVC_DEFINE(SERVICE_CLASS, NAME, TYPE, FN, FLAGS, ACTIVE)   ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS = { NAME, TYPE, FN, FLAGS, ACTIVE };
#define ACE_STATIC_SVC_REQUIRE(SERVICE_CLASS)
 Automatically register a service with the service configurator.

#define ACE_STATIC_SVC_REGISTER(SERVICE_CLASS)   do {} while (0)
#define ACE_PREPROC_CONCATENATE_IMPL(A, B)   A ## B
#define ACE_PREPROC_CONCATENATE(A, B)   ACE_PREPROC_CONCATENATE_IMPL(A,B)
#define ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(PREFIX, VERSIONED_NAMESPACE, SERVICE_CLASS)   PREFIX ## _ ## SERVICE_CLASS
#define ACE_MAKE_SVC_CONFIG_FACTORY_NAME(VERSIONED_NAMESPACE, SERVICE_CLASS)   ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(_make,VERSIONED_NAMESPACE,SERVICE_CLASS)
#define ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(VERSIONED_NAMESPACE, SERVICE_CLASS)   ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(_gobble,VERSIONED_NAMESPACE,SERVICE_CLASS)
#define ACE_FACTORY_DECLARE(CLS, SERVICE_CLASS)
#define ACE_Local_Service_Export
#define ACE_FACTORY_DEFINE(CLS, SERVICE_CLASS)
#define ACE_FACTORY_NAMESPACE_DEFINE(CLS, SERVICE_CLASS, NAMESPACE_CLASS)
#define ACE_SVC_NAME(SERVICE_CLASS)   ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS)
 The canonical name for a service factory method.

#define ACE_SVC_INVOKE(SERVICE_CLASS)   ACE_SVC_NAME(SERVICE_CLASS) (0)

Helper macros for services defined in the netsvcs library.

The ACE services defined in netsvcs use this helper macros for simplicity.

#define ACE_SVC_FACTORY_DECLARE(X)   ACE_FACTORY_DECLARE (ACE_Svc, X)
#define ACE_SVC_FACTORY_DEFINE(X)   ACE_FACTORY_DEFINE (ACE_Svc, X)

Defines

#define ACE_BEGIN_DUMP   ACE_TEXT ("\n====\n(%P|%t|%x)\n")
#define ACE_END_DUMP   ACE_TEXT ("====\n")
#define ACE_DB(X)   X
#define ACE_NO_HEAP_CHECK
#define ACE_ITOA(X)   #X
#define ACE_SERVER_ADDRESS(H, P)   H ACE_TEXT(":") P
#define ACE_POW(X)   (((X) == 0)?1:(X-=1,X|=X>>1,X|=X>>2,X|=X>>4,X|=X>>8,X|=X>>16,(++X)))
#define ACE_EVEN(NUM)   (((NUM) & 1) == 0)
#define ACE_ODD(NUM)   (((NUM) & 1) == 1)
#define ACE_BIT_ENABLED(WORD, BIT)   (((WORD) & (BIT)) != 0)
#define ACE_BIT_DISABLED(WORD, BIT)   (((WORD) & (BIT)) == 0)
#define ACE_BIT_CMP_MASK(WORD, BIT, MASK)   (((WORD) & (BIT)) == MASK)
#define ACE_SET_BITS(WORD, BITS)   (WORD |= (BITS))
#define ACE_CLR_BITS(WORD, BITS)   (WORD &= ~(BITS))
#define ACE_ENDLESS_LOOP
#define ACE_UNIMPLEMENTED_FUNC(f)   f;
#define ACE_CLASS_IS_NAMESPACE(CLASSNAME)
#define ACE_THROW_SPEC(X)   throw X
#define ACE_NESTED_CLASS(TYPE, NAME)   TYPE::NAME
#define ACE_GUARD_ACTION(MUTEX, OBJ, LOCK, ACTION, REACTION)
#define ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, REACTION)   ACE_GUARD_ACTION(MUTEX, OBJ, LOCK, ;, REACTION)
#define ACE_GUARD(MUTEX, OBJ, LOCK)   ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return)
#define ACE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)   ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return RETURN)
#define ACE_WRITE_GUARD(MUTEX, OBJ, LOCK)
#define ACE_WRITE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
#define ACE_READ_GUARD(MUTEX, OBJ, LOCK)
#define ACE_READ_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
#define ACE_DES_NOFREE(POINTER, CLASS)
#define ACE_DES_ARRAY_NOFREE(POINTER, SIZE, CLASS)
#define ACE_DES_FREE(POINTER, DEALLOCATOR, CLASS)
#define ACE_DES_ARRAY_FREE(POINTER, SIZE, DEALLOCATOR, CLASS)
#define ACE_DES_NOFREE_TEMPLATE(POINTER, T_CLASS, T_PARAMETER)
#define ACE_DES_ARRAY_NOFREE_TEMPLATE(POINTER, SIZE, T_CLASS, T_PARAMETER)
#define ACE_DES_FREE_TEMPLATE(POINTER, DEALLOCATOR, T_CLASS, T_PARAMETER)
#define ACE_DES_ARRAY_FREE_TEMPLATE(POINTER, SIZE, DEALLOCATOR, T_CLASS, T_PARAMETER)
#define ACE_DES_FREE_TEMPLATE2(POINTER, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2)
#define ACE_DES_FREE_TEMPLATE3(POINTER, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2, T_PARAM3)
#define ACE_DES_FREE_TEMPLATE4(POINTER, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2, T_PARAM3, T_PARAM4)
#define ACE_DES_ARRAY_FREE_TEMPLATE2(POINTER, SIZE, DEALLOCATOR, T_CLASS, T_PARAM1, T_PARAM2)
#define ACE_ALLOCATOR_RETURN(POINTER, ALLOCATOR, RET_VAL)
#define ACE_ALLOCATOR(POINTER, ALLOCATOR)
#define ACE_ALLOCATOR_NORETURN(POINTER, ALLOCATOR)
#define ACE_NEW_MALLOC_RETURN(POINTER, ALLOCATOR, CONSTRUCTOR, RET_VAL)
#define ACE_NEW_MALLOC(POINTER, ALLOCATOR, CONSTRUCTOR)
#define ACE_NEW_MALLOC_NORETURN(POINTER, ALLOCATOR, CONSTRUCTOR)
#define ACE_NEW_MALLOC_ARRAY_RETURN(POINTER, ALLOCATOR, CONSTRUCTOR, COUNT, RET_VAL)
#define ACE_NEW_MALLOC_ARRAY(POINTER, ALLOCATOR, CONSTRUCTOR, COUNT)
#define ACE_NOOP(x)
#define ACE_SEH_TRY   if (1)
#define ACE_SEH_EXCEPT(X)   while (0)
#define ACE_SEH_FINALLY   if (1)
#define ACE_SYNCH_DECL   class _ACE_SYNCH
#define ACE_SYNCH_USE   _ACE_SYNCH
#define ACE_SYNCH_MUTEX_T   typename _ACE_SYNCH::MUTEX
#define ACE_SYNCH_CONDITION_T   typename _ACE_SYNCH::CONDITION
#define ACE_SYNCH_SEMAPHORE_T   typename _ACE_SYNCH::SEMAPHORE
#define ACE_MEM_POOL_1   class _ACE_MEM_POOL
#define ACE_MEM_POOL_2   _ACE_MEM_POOL
#define ACE_MEM_POOL   _ACE_MEM_POOL
#define ACE_MEM_POOL_OPTIONS   typename _ACE_MEM_POOL::OPTIONS
#define ACE_PEER_STREAM_1   class _ACE_PEER_STREAM
#define ACE_PEER_STREAM_2   _ACE_PEER_STREAM
#define ACE_PEER_STREAM   _ACE_PEER_STREAM
#define ACE_PEER_STREAM_ADDR   typename _ACE_PEER_STREAM::PEER_ADDR
#define ACE_PEER_ACCEPTOR_1   class _ACE_PEER_ACCEPTOR
#define ACE_PEER_ACCEPTOR_2   _ACE_PEER_ACCEPTOR
#define ACE_PEER_ACCEPTOR   _ACE_PEER_ACCEPTOR
#define ACE_PEER_ACCEPTOR_ADDR   typename _ACE_PEER_ACCEPTOR::PEER_ADDR
#define ACE_PEER_CONNECTOR_1   class _ACE_PEER_CONNECTOR
#define ACE_PEER_CONNECTOR_2   _ACE_PEER_CONNECTOR
#define ACE_PEER_CONNECTOR   _ACE_PEER_CONNECTOR
#define ACE_PEER_CONNECTOR_ADDR   typename ACE_PEER_CONNECTOR::PEER_ADDR
#define ACE_PEER_CONNECTOR_ADDR_ANY   ACE_PEER_ADDR_TYPEDEF::sap_any
#define ACE_SOCK_ACCEPTOR   ACE_SOCK_Acceptor
#define ACE_SOCK_CONNECTOR   ACE_SOCK_Connector
#define ACE_SOCK_STREAM   ACE_SOCK_Stream
#define ACE_SOCK_DGRAM   ACE_SOCK_Dgram
#define ACE_SOCK_DGRAM_BCAST   ACE_SOCK_Dgram_Bcast
#define ACE_SOCK_DGRAM_MCAST   ACE_SOCK_Dgram_Mcast
#define ACE_SOCK_SEQPACK_ACCEPTOR   ACE_SOCK_SEQPACK_Acceptor
#define ACE_SOCK_SEQPACK_CONNECTOR   ACE_SOCK_SEQPACK_Connector
#define ACE_SOCK_SEQPACK_ASSOCIATION   ACE_SOCK_SEQPACK_Association
#define ACE_MEM_ACCEPTOR   ACE_MEM_Acceptor
#define ACE_MEM_CONNECTOR   ACE_MEM_Connector
#define ACE_MEM_STREAM   ACE_MEM_Stream
#define ACE_LSOCK_ACCEPTOR   ACE_LSOCK_Acceptor
#define ACE_LSOCK_CONNECTOR   ACE_LSOCK_Connector
#define ACE_LSOCK_STREAM   ACE_LSOCK_Stream
#define ACE_TLI_ACCEPTOR   ACE_TLI_Acceptor
#define ACE_TLI_CONNECTOR   ACE_TLI_Connector
#define ACE_TLI_STREAM   ACE_TLI_Stream
#define ACE_SPIPE_ACCEPTOR   ACE_SPIPE_Acceptor
#define ACE_SPIPE_CONNECTOR   ACE_SPIPE_Connector
#define ACE_SPIPE_STREAM   ACE_SPIPE_Stream
#define ACE_UPIPE_ACCEPTOR   ACE_UPIPE_Acceptor
#define ACE_UPIPE_CONNECTOR   ACE_UPIPE_Connector
#define ACE_UPIPE_STREAM   ACE_UPIPE_Stream
#define ACE_FILE_CONNECTOR   ACE_FILE_Connector
#define ACE_FILE_STREAM   ACE_FILE_IO
#define ACE_MMAP_MEMORY_POOL   ACE_MMAP_Memory_Pool
#define ACE_LITE_MMAP_MEMORY_POOL   ACE_Lite_MMAP_Memory_Pool
#define ACE_SBRK_MEMORY_POOL   ACE_Sbrk_Memory_Pool
#define ACE_SHARED_MEMORY_POOL   ACE_Shared_Memory_Pool
#define ACE_LOCAL_MEMORY_POOL   ACE_Local_Memory_Pool
#define ACE_PAGEFILE_MEMORY_POOL   ACE_Pagefile_Memory_Pool
#define ACE_STATIC_CONSTANT(TYPE, ASSIGNMENT)   static TYPE const ASSIGNMENT

Typedefs

typedef void(* ACE_Service_Object_Exterminator )(void *)


Detailed Description

Id
Global_Macros.h 79337 2007-08-14 14:33:48Z sowayaa

Author:
Douglas C. Schmidt <schmidt@cs.wustl.edu>

Jesper S. M|ller<stophph@diku.dk>

and a cast of thousands...

This one is split from the famous OS.h

Definition in file Global_Macros.h.


Define Documentation

#define ACE_ALLOCATOR POINTER,
ALLOCATOR   ) 
 

Value:

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

Definition at line 852 of file Global_Macros.h.

Referenced by ACE_Array_Base< T >::ACE_Array_Base(), ACE_Data_Block::ACE_Data_Block(), ACE_NS_WString::ACE_NS_WString(), ACE_Obstack_T< CHAR >::ACE_Obstack_T(), ACE_Strategy_Acceptor< SVC_HANDLER, >::ACE_Strategy_Acceptor(), ACE_Log_Msg::local_host(), and ACE_String_Base< CHAR >::set().

#define ACE_ALLOCATOR_NORETURN POINTER,
ALLOCATOR   ) 
 

Value:

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

Definition at line 856 of file Global_Macros.h.

#define ACE_ALLOCATOR_RETURN POINTER,
ALLOCATOR,
RET_VAL   ) 
 

Value:

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

Definition at line 848 of file Global_Macros.h.

Referenced by ACE_String_Base< CHAR >::append(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::bind_i(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::bind_i(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::create_buckets(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::create_buckets(), ACE_Message_Block::init_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_types_i(), ACE_DLL_Strategy< SVC_HANDLER >::make_svc_handler(), ACE_Array_Base< T >::max_size(), ACE_TLI_Acceptor::open(), ACE_Log_Msg::open(), ACE_Strategy_Acceptor< SVC_HANDLER, >::open(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::resize_i(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::schedule_i(), ACE_OS::sema_init(), ACE_SPIPE_Addr::set(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_bind(), ACE_Data_Block::size(), ACE_INET_Addr::string_to_addr(), ACE::strndup(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::trybind_i(), and ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::trybind_i().

#define ACE_BEGIN_DUMP   ACE_TEXT ("\n====\n(%P|%t|%x)\n")
 

Definition at line 34 of file Global_Macros.h.

Referenced by ACE_Unbounded_Set< T >::dump(), ACE_Unbounded_Queue< T >::dump(), ACE_TSS< TYPE >::dump(), ACE_Token_Collection::dump(), ACE_Token::dump(), ACE_Timer_Wheel_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Node_T< TYPE >::dump(), ACE_Timer_List_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::dump(), ACE_Time_Value::dump(), ACE_Thread_Descriptor::dump(), ACE_Thread_Manager::dump(), ACE_Task< ACE_SYNCH_USE >::dump(), ACE_Task_Ex<, ACE_MESSAGE_TYPE >::dump(), ACE_Scheduling_Strategy< SVC_HANDLER >::dump(), ACE_SOCK_Dgram_Mcast::dump(), ACE_Semaphore::dump(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::dump(), ACE_Select_Reactor_Notify::dump(), ACE_Select_Reactor_Handler_Repository::dump(), ACE_Select_Reactor_Handler_Repository_Iterator::dump(), ACE_RW_Process_Mutex::dump(), ACE_Remote_WLock::dump(), ACE_Remote_RLock::dump(), ACE_Remote_Mutex::dump(), ACE_Remote_Token_Proxy::dump(), ACE_TSS_Connection::dump(), ACE_Remote_Name_Space::dump(), ACE_Read_Buffer::dump(), ACE_Reactor_Token_T< ACE_TOKEN_TYPE >::dump(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::dump(), ACE_Process_Semaphore::dump(), ACE_Process_Mutex::dump(), ACE_Process_Manager::dump(), ACE_Process_Manager::Process_Descriptor::dump(), ACE_Priority_Reactor::dump(), ACE_Pipe::dump(), ACE_TSS_Info::dump(), ACE_OS::ace_flock_t::dump(), ACE_Obstack_T< CHAR >::dump(), ACE_Obchunk::dump(), ACE_Name_Proxy::dump(), ACE_Mutex::dump(), ACE_Dynamic_Message_Queue<>::dump(), ACE_Message_Queue< ACE_SYNCH_USE >::dump(), ACE_Laxity_Message_Strategy::dump(), ACE_Deadline_Message_Strategy::dump(), ACE_Dynamic_Message_Strategy::dump(), ACE_Message_Block::dump(), ACE_Data_Block::dump(), ACE_Mem_Map::dump(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::dump(), ACE_Map_Entry< EXT_ID, INT_ID >::dump(), ACE_Malloc_FIFO_Iterator_T<, ACE_LOCK, ACE_CB >::dump(), ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::dump(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::dump(), ACE_Static_Allocator_Base::dump(), ACE_Control_Block::ACE_Name_Node::dump(), ACE_Control_Block::dump(), ACE_Control_Block::ACE_Malloc_Header::dump(), ACE_LSOCK_Stream::dump(), ACE_LSOCK_Dgram::dump(), ACE_LSOCK_Connector::dump(), ACE_LSOCK_CODgram::dump(), ACE_LSOCK_Acceptor::dump(), ACE_LSOCK::dump(), ACE_Log_Record::dump(), ACE_Log_Msg::dump(), ACE_IPC_SAP::dump(), ACE_IO_SAP::dump(), ACE_INET_Addr::dump(), ACE_High_Res_Timer::dump(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump(), ACE_Hash_Multi_Map_Entry< EXT_ID, INT_ID >::dump(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump(), ACE_Hash_Map_Entry< EXT_ID, INT_ID >::dump(), ACE_Handle_Set_Iterator::dump(), ACE_Handle_Set::dump(), ACE_Guard< ACE_LOCK >::dump(), ACE_Get_Opt::dump(), ACE_Future< T >::dump(), ACE_Future_Rep< T >::dump(), ACE_File_Lock::dump(), ACE_FILE_IO::dump(), ACE_FILE_Connector::dump(), ACE_FILE_Addr::dump(), ACE_FIFO_Recv::dump(), ACE_FIFO::dump(), ACE_Event::dump(), ACE_Dynamic_Service_Base::dump(), ACE_DEV_IO::dump(), ACE_DEV_Addr::dump(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::dump(), ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::dump(), ACE_Condition< MUTEX >::dump(), ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_FIFO_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_LFU_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_LRU_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::dump(), ACE_Based_Pointer_Basic< CONCRETE >::dump(), ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::dump(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::dump(), ACE_ARGV_T< CHAR_TYPE >::dump(), ACE_ARGV_Queue_Entry_T< CHAR_TYPE >::dump(), ACE_Addr::dump(), ACE_Activation_Queue::dump(), ACE_Oneshot_Acceptor< SVC_HANDLER, >::dump(), ACE_Strategy_Acceptor< SVC_HANDLER, >::dump(), ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::dump(), ACE_RB_Tree_Iterator_Base< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Map_Const_Iterator_Base< EXT_ID, INT_ID, ACE_LOCK >::dump_i(), ACE_Map_Iterator_Base< EXT_ID, INT_ID, ACE_LOCK >::dump_i(), ACE_Local_Name_Space<, ACE_LOCK >::dump_i(), ACE_Hash_Multi_Map_Const_Iterator_Base< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Hash_Multi_Map_Iterator_Base< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Hash_Map_Const_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Hash_Map_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), and ACE_Double_Linked_List_Iterator_Base< T >::dump_i().

#define ACE_BIT_CMP_MASK WORD,
BIT,
MASK   )     (((WORD) & (BIT)) == MASK)
 

Definition at line 92 of file Global_Macros.h.

#define ACE_BIT_DISABLED WORD,
BIT   )     (((WORD) & (BIT)) == 0)
 

Definition at line 91 of file Global_Macros.h.

Referenced by ACE_Handle_Set_Iterator::ACE_Handle_Set_Iterator(), ACE_Message_Block::ACE_Message_Block(), ACE_Thread_Descriptor::acquire(), ACE_Thread_Descriptor::acquire_release(), ACE_Data_Block::base(), ACE_Thread_Manager::check_state(), ACE_Message_Block::data_block(), fopen_mode_to_open_mode_converter(), ACE::get_bcast_addr(), ACE_Log_Msg_Manager::init_backend(), ACE_Task_Base::is_writer(), ACE_Thread_Manager::join(), ACE_Log_Msg::log(), ACE_Notification_Queue_Node::mask_disables_all_notifications(), ACE_SOCK_Dgram_Mcast::open_i(), ACE_Handle_Set_Iterator::operator()(), ACE::record_and_set_non_blocking_mode(), ACE_Sig_Handlers::register_handler(), ACE_Thread_Descriptor::release(), ACE_Message_Block::release_i(), ACE_Handle_Set_Iterator::reset_state(), ACE::restore_non_blocking_mode(), ACE_SOCK_SEQPACK_Acceptor::shared_accept_start(), ACE_SOCK_Acceptor::shared_accept_start(), ACE_Data_Block::size(), ACE_Thread_Manager::spawn_i(), ACE_Thread_Descriptor::terminate(), ACE_OS::thr_create(), ACE_Streambuf::underflow(), ACE_DLL_Manager::unload_dll(), ACE_DLL_Manager::unload_policy(), ACE_Thread_Manager::wait(), ACE_Thread_Manager::wait_grp(), ACE_Thread_Manager::wait_task(), ACE_Data_Block::~ACE_Data_Block(), and ACE_Message_Block::~ACE_Message_Block().

#define ACE_BIT_ENABLED WORD,
BIT   )     (((WORD) & (BIT)) != 0)
 

Definition at line 90 of file Global_Macros.h.

Referenced by ACE_Thread_Descriptor::acquire_release(), ACE_Concurrency_Strategy< SVC_HANDLER >::activate_svc_handler(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::activate_svc_handler(), ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::activate_svc_handler(), ACE_Select_Reactor_Impl::bit_ops(), ACE_Stream_Tail<>::canonical_flush(), ACE_Stream_Head<>::canonical_flush(), ACE_Thread_Manager::check_state(), ACE_Select_Reactor_Impl::clear_dispatch_mask(), ACE_Log_Msg_UNIX_Syslog::convert_log_mask(), ACE_SOCK_Dgram_Mcast::dump(), ACE_Service_Type_Impl::fini(), ACE_Task< ACE_SYNCH_USE >::flush(), ACE_Task_Ex<, ACE_MESSAGE_TYPE >::flush(), ACE_Log_Record::format_msg(), ACE::get_bcast_addr(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::handler_i(), ACE_Logging_Strategy::init(), ACE_Log_Msg_Manager::init_backend(), ACE_Thread_Adapter::invoke_i(), ACE_Task_Base::is_reader(), ACE_TSS_Keys::is_set(), ACE_Thread_Manager::join(), ACE_SOCK_Dgram_Mcast::join(), ACE_Log_Msg_UNIX_Syslog::log(), ACE_Log_Msg::log(), ACE_Log_Msg::log_priority_enabled(), ACE_SOCK_Dgram_Bcast::mk_broadcast(), ACE_OS::mmap(), ACE_SV_Semaphore_Simple::open(), ACE_OS::open(), ACE_Log_Msg::open(), TSS_Cleanup_Instance::operator *(), TSS_Cleanup_Instance::operator->(), ACE_Logging_Strategy::parse_args(), ACE_Process_Manager::reap(), ACE_SOCK_Dgram_SC< STREAM >::recv(), ACE_OS::recvfrom(), ACE_Dynamic_Message_Queue<>::remove_messages(), ACE_Process::spawn(), ACE_SOCK_Dgram_Mcast::subscribe_ifs(), ACE_Thread_Descriptor::terminate(), ACE_TSS_Keys::test_and_clear(), ACE_TSS_Keys::test_and_set(), ACE_OS::thr_create(), ACE_OS::thr_exit(), ACE_Select_Reactor_Handler_Repository::unbind(), ACE_DLL_Manager::unload_policy(), ACE_SOCK_Dgram_Mcast::unsubscribe_ifs(), ACE_Thread_Manager::wait(), ACE_Thread_Manager::wait_grp(), ACE_Thread_Manager::wait_task(), ACE_OS::waitpid(), ACE_OutputCDR::write_octet_array_mb(), and TSS_Cleanup_Instance::~TSS_Cleanup_Instance().

#define ACE_CLASS_IS_NAMESPACE CLASSNAME   ) 
 

Value:

private: \
  CLASSNAME (void); \
  CLASSNAME (const CLASSNAME&); \
  friend class ace_dewarn_gplusplus

Definition at line 110 of file Global_Macros.h.

#define ACE_CLR_BITS WORD,
BITS   )     (WORD &= ~(BITS))
 

Definition at line 94 of file Global_Macros.h.

Referenced by ACE_Stream_Tail<>::canonical_flush(), ACE_Stream_Head<>::canonical_flush(), ACE_Notification_Queue_Node::clear_mask(), ACE_Data_Block::clr_flags(), ACE_Log_Msg::clr_flags(), ACE::clr_flags(), ACE_Message_Block::clr_self_flags(), ACE_SPIPE_Connector::connect(), ACE_Log_Msg::disable_debug_messages(), fopen_mode_to_open_mode_converter(), ACE_Log_Msg::open(), ACE_Logging_Strategy::priorities(), ACE_Thread_Manager::resume_thr(), ACE_Data_Block::size(), ACE_Thread_Manager::spawn(), and ACE_TSS_Keys::test_and_clear().

#define ACE_CORBA_1 NAME   )     CORBA::NAME
 

Definition at line 159 of file Global_Macros.h.

#define ACE_CORBA_2 TYPE,
NAME   )     CORBA::TYPE::NAME
 

Definition at line 160 of file Global_Macros.h.

#define ACE_CORBA_3 TYPE,
NAME   )     CORBA::TYPE::NAME
 

Definition at line 161 of file Global_Macros.h.

#define ACE_DB  )     X
 

Definition at line 40 of file Global_Macros.h.

#define ACE_DES_ARRAY_FREE POINTER,
SIZE,
DEALLOCATOR,
CLASS   ) 
 

Value:

do { \
        if (POINTER) \
          { \
            for (size_t i = 0; \
                 i < SIZE; \
                 ++i) \
            { \
              (&(POINTER)[i])->~CLASS (); \
            } \
            DEALLOCATOR (POINTER); \
          } \
      } \
   while (0)

Definition at line 227 of file Global_Macros.h.

Referenced by ACE_Array_Base< T >::max_size(), and ACE_Array_Base< T >::~ACE_Array_Base().

#define ACE_DES_ARRAY_FREE_TEMPLATE POINTER,
SIZE,
DEALLOCATOR,
T_CLASS,
T_PARAMETER   ) 
 

Value:

do { \
            if (POINTER) \
              { \
                for (size_t i = 0; \
                     i < SIZE; \
                     ++i) \
                { \
                  POINTER[i].T_CLASS T_PARAMETER::~T_CLASS (); \
                } \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

Definition at line 408 of file Global_Macros.h.

#define ACE_DES_ARRAY_FREE_TEMPLATE2 POINTER,
SIZE,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2   ) 
 

Value:

do { \
            if (POINTER) \
              { \
                for (size_t i = 0; \
                     i < SIZE; \
                     ++i) \
                { \
                  POINTER[i].T_CLASS <T_PARAM1, T_PARAM2>::~T_CLASS (); \
                } \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

Definition at line 449 of file Global_Macros.h.

#define ACE_DES_ARRAY_NOFREE POINTER,
SIZE,
CLASS   ) 
 

Value:

do { \
        if (POINTER) \
          { \
            for (size_t i = 0; \
                 i < SIZE; \
                 ++i) \
            { \
              (&(POINTER)[i])->~CLASS (); \
            } \
          } \
      } \
   while (0)

Definition at line 203 of file Global_Macros.h.

Referenced by ACE_Array_Base< T >::operator=().

#define ACE_DES_ARRAY_NOFREE_TEMPLATE POINTER,
SIZE,
T_CLASS,
T_PARAMETER   ) 
 

Value:

do { \
          if (POINTER) \
            { \
              for (size_t i = 0; \
                   i < SIZE; \
                   ++i) \
              { \
                (POINTER)[i].T_CLASS T_PARAMETER::~T_CLASS (); \
              } \
            } \
        } \
     while (0)

Definition at line 386 of file Global_Macros.h.

#define ACE_DES_FREE POINTER,
DEALLOCATOR,
CLASS   ) 
 

Value:

do { \
        if (POINTER) \
          { \
            (POINTER)->~CLASS (); \
            DEALLOCATOR (POINTER); \
          } \
      } \
   while (0)

Definition at line 217 of file Global_Macros.h.

Referenced by ACE_DLList< T >::delete_head(), ACE_Double_Linked_List< T >::delete_nodes(), ACE_DLList< T >::delete_tail(), ACE_Activation_Queue::enqueue(), ACE_Message_Block::release(), ACE_Data_Block::release(), ACE_Message_Block::release_i(), ACE_DLList< T >::remove(), and ACE_Double_Linked_List< T >::~ACE_Double_Linked_List().

#define ACE_DES_FREE_TEMPLATE POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAMETER   ) 
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS T_PARAMETER::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

Definition at line 399 of file Global_Macros.h.

Referenced by ACE_Unbounded_Stack< T >::delete_all_nodes(), ACE_Unbounded_Set< T >::delete_nodes(), ACE_Unbounded_Queue< T >::delete_nodes(), ACE_Ordered_MultiSet< T >::delete_nodes(), ACE_Unbounded_Queue< T >::dequeue_head(), ACE_Unbounded_Stack< T >::pop(), ACE_Unbounded_Set< T >::remove(), ACE_Ordered_MultiSet< T >::remove(), ACE_Unbounded_Stack< T >::remove(), ACE_Unbounded_Queue< T >::~ACE_Unbounded_Queue(), ACE_Unbounded_Set< T >::~ACE_Unbounded_Set(), and ACE_Unbounded_Stack< T >::~ACE_Unbounded_Stack().

#define ACE_DES_FREE_TEMPLATE2 POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2   ) 
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS <T_PARAM1, T_PARAM2>::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

Definition at line 422 of file Global_Macros.h.

Referenced by ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::close_i(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::close_i(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::close_i(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::delete_children_i(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::free_search_structure(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::remove_i(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_all_i(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_all_i(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_i(), and ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_i().

#define ACE_DES_FREE_TEMPLATE3 POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2,
T_PARAM3   ) 
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS <T_PARAM1, T_PARAM2, T_PARAM3>::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

Definition at line 431 of file Global_Macros.h.

#define ACE_DES_FREE_TEMPLATE4 POINTER,
DEALLOCATOR,
T_CLASS,
T_PARAM1,
T_PARAM2,
T_PARAM3,
T_PARAM4   ) 
 

Value:

do { \
            if (POINTER) \
              { \
                POINTER->T_CLASS <T_PARAM1, T_PARAM2, T_PARAM3, T_PARAM4>::~T_CLASS (); \
                DEALLOCATOR (POINTER); \
              } \
          } \
       while (0)

Definition at line 440 of file Global_Macros.h.

#define ACE_DES_NOFREE POINTER,
CLASS   ) 
 

Value:

do { \
        if (POINTER) \
          { \
            (POINTER)->~CLASS (); \
          } \
      } \
   while (0)

Definition at line 194 of file Global_Macros.h.

#define ACE_DES_NOFREE_TEMPLATE POINTER,
T_CLASS,
T_PARAMETER   ) 
 

Value:

do { \
          if (POINTER) \
            { \
              (POINTER)->T_CLASS T_PARAMETER::~T_CLASS (); \
            } \
        } \
     while (0)

Definition at line 378 of file Global_Macros.h.

#define ACE_END_DUMP   ACE_TEXT ("====\n")
 

Definition at line 35 of file Global_Macros.h.

Referenced by ACE_Unbounded_Set< T >::dump(), ACE_Unbounded_Queue< T >::dump(), ACE_TSS< TYPE >::dump(), ACE_Token_Collection::dump(), ACE_Token::dump(), ACE_Timer_Wheel_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Node_T< TYPE >::dump(), ACE_Timer_List_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::dump(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::dump(), ACE_Time_Value::dump(), ACE_Thread_Descriptor::dump(), ACE_Thread_Manager::dump(), ACE_Task< ACE_SYNCH_USE >::dump(), ACE_Task_Ex<, ACE_MESSAGE_TYPE >::dump(), ACE_Scheduling_Strategy< SVC_HANDLER >::dump(), ACE_SOCK_Dgram_Mcast::dump(), ACE_DLL_Singleton_T< TYPE, ACE_LOCK >::dump(), ACE_Unmanaged_TSS_Singleton< TYPE, ACE_LOCK >::dump(), ACE_TSS_Singleton< TYPE, ACE_LOCK >::dump(), ACE_Unmanaged_Singleton< TYPE, ACE_LOCK >::dump(), ACE_Singleton< TYPE, ACE_LOCK >::dump(), ACE_Semaphore::dump(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::dump(), ACE_Select_Reactor_Notify::dump(), ACE_Select_Reactor_Handler_Repository::dump(), ACE_Select_Reactor_Handler_Repository_Iterator::dump(), ACE_RW_Process_Mutex::dump(), ACE_Remote_WLock::dump(), ACE_Remote_RLock::dump(), ACE_Remote_Mutex::dump(), ACE_Remote_Token_Proxy::dump(), ACE_TSS_Connection::dump(), ACE_Remote_Name_Space::dump(), ACE_Read_Buffer::dump(), ACE_Reactor_Token_T< ACE_TOKEN_TYPE >::dump(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::dump(), ACE_Process_Semaphore::dump(), ACE_Process_Mutex::dump(), ACE_Process_Manager::dump(), ACE_Process_Manager::Process_Descriptor::dump(), ACE_Priority_Reactor::dump(), ACE_Pipe::dump(), ACE_TSS_Info::dump(), ACE_OS::ace_flock_t::dump(), ACE_Obstack_T< CHAR >::dump(), ACE_Obchunk::dump(), ACE_Name_Proxy::dump(), ACE_Mutex::dump(), ACE_Dynamic_Message_Queue<>::dump(), ACE_Message_Queue< ACE_SYNCH_USE >::dump(), ACE_Laxity_Message_Strategy::dump(), ACE_Deadline_Message_Strategy::dump(), ACE_Dynamic_Message_Strategy::dump(), ACE_Message_Block::dump(), ACE_Data_Block::dump(), ACE_Mem_Map::dump(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::dump(), ACE_Map_Entry< EXT_ID, INT_ID >::dump(), ACE_Malloc_FIFO_Iterator_T<, ACE_LOCK, ACE_CB >::dump(), ACE_Malloc_LIFO_Iterator_T<, ACE_LOCK, ACE_CB >::dump(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::dump(), ACE_Static_Allocator_Base::dump(), ACE_Control_Block::ACE_Name_Node::dump(), ACE_Control_Block::dump(), ACE_Control_Block::ACE_Malloc_Header::dump(), ACE_LSOCK_Stream::dump(), ACE_LSOCK_Dgram::dump(), ACE_LSOCK_Connector::dump(), ACE_LSOCK_CODgram::dump(), ACE_LSOCK_Acceptor::dump(), ACE_LSOCK::dump(), ACE_Log_Record::dump(), ACE_Log_Msg::dump(), ACE_IPC_SAP::dump(), ACE_IO_SAP::dump(), ACE_INET_Addr::dump(), ACE_High_Res_Timer::dump(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump(), ACE_Hash_Multi_Map_Entry< EXT_ID, INT_ID >::dump(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump(), ACE_Hash_Map_Entry< EXT_ID, INT_ID >::dump(), ACE_Handle_Set_Iterator::dump(), ACE_Handle_Set::dump(), ACE_Guard< ACE_LOCK >::dump(), ACE_Get_Opt::dump(), ACE_Future< T >::dump(), ACE_Future_Rep< T >::dump(), ACE_File_Lock::dump(), ACE_FILE_IO::dump(), ACE_FILE_Connector::dump(), ACE_FILE_Addr::dump(), ACE_FIFO_Recv::dump(), ACE_FIFO::dump(), ACE_Event::dump(), ACE_Dynamic_Service_Base::dump(), ACE_DEV_IO::dump(), ACE_DEV_Addr::dump(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::dump(), ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::dump(), ACE_Condition< MUTEX >::dump(), ACE_Null_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_FIFO_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_LFU_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_LRU_Caching_Strategy< ATTRIBUTES, CACHING_UTILITY >::dump(), ACE_Caching_Strategy_Adapter< ATTRIBUTES, CACHING_UTILITY, IMPLEMENTATION >::dump(), ACE_Based_Pointer_Basic< CONCRETE >::dump(), ACE_Auto_IncDec< ACE_SAFELY_INCREMENTABLE_DECREMENTABLE >::dump(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::dump(), ACE_ARGV_T< CHAR_TYPE >::dump(), ACE_ARGV_Queue_Entry_T< CHAR_TYPE >::dump(), ACE_Addr::dump(), ACE_Activation_Queue::dump(), ACE_Oneshot_Acceptor< SVC_HANDLER, >::dump(), ACE_Strategy_Acceptor< SVC_HANDLER, >::dump(), ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::dump(), ACE_RB_Tree_Iterator_Base< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Map_Const_Iterator_Base< EXT_ID, INT_ID, ACE_LOCK >::dump_i(), ACE_Map_Iterator_Base< EXT_ID, INT_ID, ACE_LOCK >::dump_i(), ACE_Local_Name_Space<, ACE_LOCK >::dump_i(), ACE_Hash_Multi_Map_Const_Iterator_Base< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Hash_Multi_Map_Iterator_Base< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Hash_Map_Const_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), ACE_Hash_Map_Iterator_Base_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::dump_i(), and ACE_Double_Linked_List_Iterator_Base< T >::dump_i().

#define ACE_ENDLESS_LOOP
 

Definition at line 97 of file Global_Macros.h.

#define ACE_EVEN NUM   )     (((NUM) & 1) == 0)
 

Definition at line 88 of file Global_Macros.h.

#define ACE_FACTORY_DECLARE CLS,
SERVICE_CLASS   ) 
 

Value:

extern "C" CLS##_Export ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object * \
ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (ACE_Service_Object_Exterminator *);
Once the service implementation is dynamically loaded the Service Configurator uses a factory method to create the object. This macro declares such a factory function with the proper interface and export macros. Normally used in the header file that declares the service implementation.

Parameters:
CLS must match the prefix of the export macro used for this service.
SERVICE_CLASS must match the name of the class that implements the service.

Definition at line 641 of file Global_Macros.h.

#define ACE_FACTORY_DEFINE CLS,
SERVICE_CLASS   ) 
 

Value:

void ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (void *p) { \
  ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object * _p = \
    static_cast< ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *> (p); \
  ACE_ASSERT (_p != 0); \
  delete _p; } \
extern "C" CLS##_Export ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *\
ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (ACE_Service_Object_Exterminator *gobbler) \
{ \
  ACE_TRACE (#SERVICE_CLASS); \
  if (gobbler != 0) \
    *gobbler = (ACE_Service_Object_Exterminator) ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS); \
  return new SERVICE_CLASS; \
}
The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 681 of file Global_Macros.h.

#define ACE_FACTORY_NAMESPACE_DEFINE CLS,
SERVICE_CLASS,
NAMESPACE_CLASS   ) 
 

Value:

void ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (void *p) { \
  ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object * _p = \
    static_cast< ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *> (p); \
  ACE_ASSERT (_p != 0); \
  delete _p; } \
extern "C" CLS##_Export ACE_VERSIONED_NAMESPACE_NAME::ACE_Service_Object *\
ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS) (ACE_Service_Object_Exterminator *gobbler) \
{ \
  ACE_TRACE (#SERVICE_CLASS); \
  if (gobbler != 0) \
    *gobbler = (ACE_Service_Object_Exterminator) ACE_MAKE_SVC_CONFIG_GOBBLER_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS); \
  return new NAMESPACE_CLASS; \
}
For service classes scoped within namespaces, use this macro in place of ACE_FACTORY_DEFINE. The third argument in this case is the fully scoped name of the class as it is to be instantiated. For example, given: namespace ACE { namespace Foo { class Bar : public ACE_Service_Object {}; }; };

ACE_FACTORY_DECLARE(ACE,ACE_Foo_Bar)

you would then use:

ACE_FACTORY_NAMESPACE_DEFINE(ACE,ACE_Foo_Bar,ACE::Foo::Bar)

Note that in this example, the ACE_FACTORY_DECLARE is done outside the namespace scope. Then, the SERVICE_CLASS name is the same as the fully scoped class name, but with '::' replaced with '_'. Doing this will ensure unique generated signatures for the various C style functions.

Definition at line 743 of file Global_Macros.h.

#define ACE_FILE_CONNECTOR   ACE_FILE_Connector
 

Definition at line 1019 of file Global_Macros.h.

#define ACE_FILE_STREAM   ACE_FILE_IO
 

Definition at line 1020 of file Global_Macros.h.

#define ACE_GUARD MUTEX,
OBJ,
LOCK   )     ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return)
 

Definition at line 175 of file Global_Macros.h.

Referenced by ACE_Log_Msg::ACE_Log_Msg(), ACE_Locked_Free_List< T, ACE_LOCK >::add(), ACE_Future_Rep< T >::assign(), ACE_Bound_Ptr_Counter< ACE_LOCK >::attach_weak(), ACE_Task_Base::cleanup(), ACE_Cached_Connect_Strategy_Ex< SVC_HANDLER,, CACHING_STRATEGY, ATTRIBUTES, MUTEX >::cleanup(), ACE_Thread_Manager::close_singleton(), ACE_Service_Repository::close_singleton(), ACE_Reactor::close_singleton(), ACE_Process_Manager::close_singleton(), ACE_Proactor::close_singleton(), ACE_Allocator::close_singleton(), ACE_Framework_Repository::close_singleton(), ACE_DLL_Manager::close_singleton(), ACE_Log_Msg::clr_flags(), ACE_Thread_Timer_Queue_Adapter< TQ >::deactivate(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::deactivate(), ACE_Future_Rep< T >::detach(), ACE_Bound_Ptr_Counter< ACE_LOCK >::detach_weak(), ACE_Thread_Manager::dump(), ACE_SOCK_Dgram_Mcast::dump(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::free(), ACE_Utils::UUID_Generator::generateUUID(), ACE_Utils::UUID_Generator::get_timestamp(), ACE_Task_Base::grp_id(), ACE_Message_Queue< ACE_SYNCH_USE >::high_water_mark(), ACE_Utils::UUID_Generator::init(), ACE_Message_Queue< ACE_SYNCH_USE >::low_water_mark(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::max_notify_iterations(), ACE_Message_Queue< ACE_SYNCH_USE >::message_bytes(), ACE_Message_Queue< ACE_SYNCH_USE >::message_length(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::requeue_position(), ACE_Locked_Free_List< T, ACE_LOCK >::resize(), ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK >::return_node(), ACE_Log_Msg::set_flags(), ACE_DLL_Manager::unload_policy(), ACE_Log_Msg::~ACE_Log_Msg(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::~ACE_Timer_Hash_T(), and ACE_Timer_List_T< TYPE, FUNCTOR, ACE_LOCK >::~ACE_Timer_List_T().

#define ACE_GUARD_ACTION MUTEX,
OBJ,
LOCK,
ACTION,
REACTION   ) 
 

Value:

ACE_Guard< MUTEX > OBJ (LOCK); \
   if (OBJ.locked () != 0) { ACTION; } \
   else { REACTION; }

Definition at line 169 of file Global_Macros.h.

#define ACE_GUARD_REACTION MUTEX,
OBJ,
LOCK,
REACTION   )     ACE_GUARD_ACTION(MUTEX, OBJ, LOCK, ;, REACTION)
 

Definition at line 173 of file Global_Macros.h.

#define ACE_GUARD_RETURN MUTEX,
OBJ,
LOCK,
RETURN   )     ACE_GUARD_REACTION(MUTEX, OBJ, LOCK, return RETURN)
 

Definition at line 177 of file Global_Macros.h.

Referenced by ACE_UPIPE_Acceptor::accept(), ACE_LOCK_SOCK_Acceptor< ACE_LOCK >::accept(), ace_yylex(), ACE_Task_Base::activate(), ACE_Message_Queue< ACE_SYNCH_USE >::activate(), ACE_Thread_Manager::apply_all(), ACE_Thread_Manager::apply_grp(), ACE_Thread_Manager::apply_task(), ACE_Object_Manager::at_exit_i(), ACE_Future_Rep< T >::attach(), ACE_Bound_Ptr_Counter< ACE_LOCK >::attach_strong(), ACE_Based_Pointer_Repository::bind(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::cache(), ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK >::calculate_timeout(), ACE_Timer_Wheel_T< TYPE, FUNCTOR, ACE_LOCK >::cancel(), ACE_Thread_Timer_Queue_Adapter< TQ >::cancel(), ACE_Timer_List_T< TYPE, FUNCTOR, ACE_LOCK >::cancel(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::cancel(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::cancel(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::cancel_timer(), ACE_Thread_Manager::check_state(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::cleanup_hint(), ACE_SOCK_Dgram_Mcast::clear_subs_list(), ACE_UPIPE_Stream::close(), ACE_Thread_Manager::close(), ACE_Stream<>::close(), ACE_Service_Repository::close(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::close(), ACE_Process_Manager::close(), ACE_Message_Queue< ACE_SYNCH_USE >::close(), ACE_Framework_Repository::close(), ACE_DLL_Handle::close(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::close(), ACE_NonBlocking_Connect_Handler< SVC_HANDLER >::close(), ACE_DLL_Manager::close_dll(), ACE_UPIPE_Connector::connect(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::connect_svc_handler(), ACE_Local_Name_Space<, ACE_LOCK >::create_manager_i(), ACE_Token::current_owner(), ACE_Service_Repository::current_size(), ACE_Framework_Repository::current_size(), ACE_Message_Queue< ACE_SYNCH_USE >::deactivate(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_deadline(), ACE_Dynamic_Message_Queue<>::dequeue_head(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_head(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_prio(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_tail(), ACE_Future_Rep< T >::detach(), ACE_Bound_Ptr_Counter< ACE_LOCK >::detach_strong(), ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK >::dispatch_info(), ACE_Data_Block::duplicate(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_deadline(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_head(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_prio(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_tail(), ACE_Thread_Manager::exit(), ACE_Timer_Wheel_T< TYPE, FUNCTOR, ACE_LOCK >::expire(), ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK >::expire(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::expire(), ACE_Service_Repository::find(), ACE_Based_Pointer_Repository::find(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::find_handler(), ACE_Service_Repository::fini(), ACE_Log_Msg::flags(), ACE_Buffered_Svc_Handler<, >::flush(), ACE_Message_Queue< ACE_SYNCH_USE >::flush(), ACE_Future_Rep< T >::get(), ACE_Thread_Manager::get_grp(), ACE_DLL_Handle::get_handle(), ACE_High_Res_Timer::global_scale_factor(), ACE_Task_Base::grp_id(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::handle_events(), ACE_Process_Manager::handle_signal(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::handler(), ACE_Message_Queue< ACE_SYNCH_USE >::high_water_mark(), ACE_Thread_Manager::hthread_descriptor(), ACE_Thread_Manager::hthread_grp_list(), ACE_Thread_Manager::hthread_list(), ACE_Thread_Manager::hthread_within(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::initialized(), ACE_Service_Repository::insert(), ACE_Thread_Manager::insert_thr(), ACE_Thread_Manager::instance(), ACE_Thread_Exit::instance(), ACE_DLL_Singleton_T< TYPE, ACE_LOCK >::instance(), ACE_Unmanaged_TSS_Singleton< TYPE, ACE_LOCK >::instance(), ACE_TSS_Singleton< TYPE, ACE_LOCK >::instance(), ACE_Unmanaged_Singleton< TYPE, ACE_LOCK >::instance(), ACE_Singleton< TYPE, ACE_LOCK >::instance(), ACE_Service_Repository::instance(), ACE_Reactor::instance(), ACE_Process_Manager::instance(), ACE_Proactor::instance(), ACE_Allocator::instance(), ACE_Framework_Repository::instance(), ACE_Filecache::instance(), ACE_ODB::instance(), ACE_DLL_Manager::instance(), ip_check(), ACE_Message_Queue< ACE_SYNCH_USE >::is_empty(), ACE_Message_Queue< ACE_SYNCH_USE >::is_full(), ACE_Test_and_Set< ACE_LOCK, TYPE >::is_set(), ACE_Thread_Manager::join(), ACE_SOCK_Dgram_Mcast::join(), ACE_SOCK_Dgram_Mcast::leave(), ACE_Stream<>::link(), ACE_Log_Msg::log(), ACE_Message_Queue< ACE_SYNCH_USE >::low_water_mark(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::malloc(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::mark_as_closed(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::mask_ops(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::max_notify_iterations(), ACE_Message_Queue< ACE_SYNCH_USE >::message_bytes(), ACE_Message_Queue< ACE_SYNCH_USE >::message_count(), ACE_Message_Queue< ACE_SYNCH_USE >::message_length(), ACE_Log_Msg::msg_backend(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::new_connection(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::nonblocking_connect(), ACE_Thread_Manager::num_tasks_in_group(), ACE_Thread_Manager::num_threads_in_task(), ACE_Bound_Ptr_Counter< ACE_LOCK >::object_was_deleted(), ACE_Stream<>::open(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::open(), ACE_Process_Manager::open(), ACE_Notification_Queue::open(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::open(), ACE_Log_Msg::open(), ACE_DLL_Handle::open(), ACE_DLL_Manager::open_dll(), ACE_Future_Rep< T >::operator T(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator++(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator+=(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator--(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator-=(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator<(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator<=(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator=(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator==(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator>(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::operator>=(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::owner(), ACE_Message_Queue< ACE_SYNCH_USE >::peek_dequeue_head(), ACE_Notification_Queue::pop_next_notification(), ACE_Message_Queue< ACE_SYNCH_USE >::pulse(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::purge(), ACE_Notification_Queue::purge_pending_notifications(), ACE_Notification_Queue::push_new_notification(), ACE_Buffered_Svc_Handler<, >::put(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::ready_ops(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::recycle_state(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::ref_counter(), ACE_Data_Block::reference_count(), ACE_Framework_Repository::register_component(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::register_handler(), ACE_Process_Manager::register_handler(), ACE_Token::release(), ACE_Message_Block::release(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::release(), ACE_Data_Block::release_no_delete(), ACE_Service_Repository::remove(), ACE_Process_Manager::remove(), ACE_Locked_Free_List< T, ACE_LOCK >::remove(), ACE_Framework_Repository::remove_component(), ACE_Framework_Repository::remove_dll_components(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::remove_handler(), ACE_Token::renew(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::requeue_position(), ACE_Timer_Wheel_T< TYPE, FUNCTOR, ACE_LOCK >::reset_interval(), ACE_Timer_List_T< TYPE, FUNCTOR, ACE_LOCK >::reset_interval(), ACE_Timer_Heap_T< TYPE, FUNCTOR, ACE_LOCK >::reset_interval(), ACE_Timer_Hash_T< TYPE, FUNCTOR, ACE_LOCK, BUCKET >::reset_interval(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::reset_timer_interval(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::restart(), ACE_Task_Base::resume(), ACE_Service_Repository::resume(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::resume_handler(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::resume_handlers(), ACE_Timer_Queue_T< TYPE, FUNCTOR, ACE_LOCK >::schedule(), ACE_Thread_Timer_Queue_Adapter< TQ >::schedule(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::schedule_timer(), ACE_Test_and_Set< ACE_LOCK, TYPE >::set(), ACE_Future_Rep< T >::set(), ACE_Thread_Manager::set_grp(), ACE_Process_Manager::set_scheduler(), ACE_Process_Manager::set_scheduler_all(), ACE_Token::shared_acquire(), ACE_Thread_Manager::spawn(), ACE_Process_Manager::spawn(), ACE_Thread_Manager::spawn_n(), ACE_Task_Base::suspend(), ACE_Service_Repository::suspend(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::suspend_handler(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::suspend_handlers(), ACE_Thread_Timer_Queue_Adapter< TQ >::svc(), ACE_DLL_Handle::symbol(), ACE_Thread_Manager::task_all_list(), ACE_Thread_Manager::task_list(), ACE_Process_Manager::terminate(), ACE_Task_Base::thr_count(), ACE_Thread_Manager::thr_state(), ACE_Thread_Manager::thread_all_list(), ACE_Thread_Manager::thread_descriptor(), ACE_Thread_Manager::thread_grp_list(), ACE_Thread_Manager::thread_list(), ACE_Thread_Manager::thread_within(), ACE_Service_Repository::total_size(), ACE_Framework_Repository::total_size(), ACE_Based_Pointer_Repository::unbind(), ACE_Stream<>::unlink(), ACE_Atomic_Op_Ex< ACE_LOCK, TYPE >::value(), ACE_Thread_Manager::wait(), ACE_Process_Manager::wait(), ACE_Thread_Manager::wait_grp(), ACE_Thread_Manager::wait_task(), ACE_Token::waiters(), and ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::work_pending().

#define ACE_ITOA  )     #X
 

Definition at line 78 of file Global_Macros.h.

#define ACE_LITE_MMAP_MEMORY_POOL   ACE_Lite_MMAP_Memory_Pool
 

Definition at line 1024 of file Global_Macros.h.

#define ACE_LOCAL_MEMORY_POOL   ACE_Local_Memory_Pool
 

Definition at line 1027 of file Global_Macros.h.

#define ACE_Local_Service_Export
 

Use with arguments matching ACE_FACTORY_DECLARE. Normally used in the .cpp file that defines the service implementation.

This macro defines both the factory method and the function used to cleanup the service object.

If this macro is used to define a factory function that need not be exported (for example, in a static service situation), CLS can be specified as ACE_Local_Service.

Definition at line 659 of file Global_Macros.h.

#define ACE_LSOCK_ACCEPTOR   ACE_LSOCK_Acceptor
 

Definition at line 999 of file Global_Macros.h.

#define ACE_LSOCK_CONNECTOR   ACE_LSOCK_Connector
 

Definition at line 1000 of file Global_Macros.h.

#define ACE_LSOCK_STREAM   ACE_LSOCK_Stream
 

Definition at line 1001 of file Global_Macros.h.

#define ACE_MAKE_SVC_CONFIG_FACTORY_NAME VERSIONED_NAMESPACE,
SERVICE_CLASS   )     ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(_make,VERSIONED_NAMESPACE,SERVICE_CLASS)
 

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 621 of file Global_Macros.h.

#define ACE_MAKE_SVC_CONFIG_FUNCTION_NAME PREFIX,
VERSIONED_NAMESPACE,
SERVICE_CLASS   )     PREFIX ## _ ## SERVICE_CLASS
 

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 618 of file Global_Macros.h.

#define ACE_MAKE_SVC_CONFIG_GOBBLER_NAME VERSIONED_NAMESPACE,
SERVICE_CLASS   )     ACE_MAKE_SVC_CONFIG_FUNCTION_NAME(_gobble,VERSIONED_NAMESPACE,SERVICE_CLASS)
 

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 622 of file Global_Macros.h.

#define ACE_MEM_ACCEPTOR   ACE_MEM_Acceptor
 

Definition at line 994 of file Global_Macros.h.

#define ACE_MEM_CONNECTOR   ACE_MEM_Connector
 

Definition at line 995 of file Global_Macros.h.

#define ACE_MEM_POOL   _ACE_MEM_POOL
 

Definition at line 958 of file Global_Macros.h.

#define ACE_MEM_POOL_1   class _ACE_MEM_POOL
 

Definition at line 956 of file Global_Macros.h.

#define ACE_MEM_POOL_2   _ACE_MEM_POOL
 

Definition at line 957 of file Global_Macros.h.

Referenced by ACE_Malloc<, ACE_LOCK >::ACE_Malloc(), ACE_Malloc_FIFO_Iterator<, ACE_LOCK >::ACE_Malloc_FIFO_Iterator(), and ACE_Malloc_LIFO_Iterator<, ACE_LOCK >::ACE_Malloc_LIFO_Iterator().

#define ACE_MEM_POOL_OPTIONS   typename _ACE_MEM_POOL::OPTIONS
 

Definition at line 959 of file Global_Macros.h.

Referenced by ACE_Local_Name_Space<, ACE_LOCK >::create_manager_i().

#define ACE_MEM_STREAM   ACE_MEM_Stream
 

Definition at line 996 of file Global_Macros.h.

#define ACE_MMAP_MEMORY_POOL   ACE_MMAP_Memory_Pool
 

Definition at line 1023 of file Global_Macros.h.

#define ACE_NESTED_CLASS TYPE,
NAME   )     TYPE::NAME
 

This macro is deprecated

Definition at line 144 of file Global_Macros.h.

#define ACE_NEW_MALLOC POINTER,
ALLOCATOR,
CONSTRUCTOR   ) 
 

Value:

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

Definition at line 866 of file Global_Macros.h.

Referenced by ACE_Double_Linked_List< T >::ACE_Double_Linked_List(), ACE_Unbounded_Queue< T >::ACE_Unbounded_Queue(), ACE_Unbounded_Set< T >::ACE_Unbounded_Set(), ACE_Unbounded_Stack< T >::ACE_Unbounded_Stack(), ACE_Unbounded_Stack< T >::copy_all_nodes(), and ACE_Double_Linked_List< T >::copy_nodes().

#define ACE_NEW_MALLOC_ARRAY POINTER,
ALLOCATOR,
CONSTRUCTOR,
COUNT   ) 
 

Value:

do { POINTER = ALLOCATOR; \
     if (POINTER == 0) { errno = ENOMEM; return;} \
     else { (void) new (POINTER) CONSTRUCTOR [COUNT]; } \
   } while (0)

Definition at line 899 of file Global_Macros.h.

#define ACE_NEW_MALLOC_ARRAY_RETURN POINTER,
ALLOCATOR,
CONSTRUCTOR,
COUNT,
RET_VAL   ) 
 

Value:

do { POINTER = ALLOCATOR; \
     if (POINTER == 0) { errno = ENOMEM; return RET_VAL;} \
     else { (void) new (POINTER) CONSTRUCTOR [COUNT]; } \
   } while (0)

Definition at line 894 of file Global_Macros.h.

#define ACE_NEW_MALLOC_NORETURN POINTER,
ALLOCATOR,
CONSTRUCTOR   ) 
 

Value:

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

Definition at line 871 of file Global_Macros.h.

#define ACE_NEW_MALLOC_RETURN POINTER,
ALLOCATOR,
CONSTRUCTOR,
RET_VAL   ) 
 

Value:

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

Definition at line 861 of file Global_Macros.h.

Referenced by ACE_Locked_Data_Block< ACE_LOCK >::clone_nocopy(), ACE_Data_Block::clone_nocopy(), ACE_Message_Block::duplicate(), ACE_Activation_Queue::enqueue(), ACE_Unbounded_Queue< T >::enqueue_head(), ACE_Unbounded_Queue< T >::enqueue_tail(), ACE_Message_Block::init_i(), ACE_Ordered_MultiSet< T >::insert_from(), ACE_DLList< T >::insert_head(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::insert_i(), ACE_Unbounded_Set< T >::insert_tail(), ACE_DLList< T >::insert_tail(), ACE_Obstack_T< CHAR >::new_chunk(), and ACE_Unbounded_Stack< T >::push().

#define ACE_NO_HEAP_CHECK
 

Definition at line 71 of file Global_Macros.h.

Referenced by ACE_Log_Msg_Manager::init_backend(), ACE_Log_Msg::instance(), ACE_Log_Msg::local_host(), ACE_Log_Msg::open(), ACE_Service_Gestalt::process_directives_i(), and ACE_Log_Msg::sync().

#define ACE_NOOP  ) 
 

Definition at line 916 of file Global_Macros.h.

Referenced by ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::close_i(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::close_i(), and ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::free_search_structure().

#define ACE_ODD NUM   )     (((NUM) & 1) == 1)
 

Definition at line 89 of file Global_Macros.h.

#define ACE_PAGEFILE_MEMORY_POOL   ACE_Pagefile_Memory_Pool
 

Definition at line 1028 of file Global_Macros.h.

#define ACE_PEER_ACCEPTOR   _ACE_PEER_ACCEPTOR
 

Definition at line 970 of file Global_Macros.h.

Referenced by ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::acceptor(), ACE_Oneshot_Acceptor< SVC_HANDLER, >::acceptor(), ACE_Oneshot_Acceptor< SVC_HANDLER, >::operator ACE_PEER_ACCEPTOR &(), and ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::operator ACE_PEER_ACCEPTOR &().

#define ACE_PEER_ACCEPTOR_1   class _ACE_PEER_ACCEPTOR
 

Definition at line 968 of file Global_Macros.h.

#define ACE_PEER_ACCEPTOR_2   _ACE_PEER_ACCEPTOR
 

Definition at line 969 of file Global_Macros.h.

#define ACE_PEER_ACCEPTOR_ADDR   typename _ACE_PEER_ACCEPTOR::PEER_ADDR
 

Definition at line 971 of file Global_Macros.h.

Referenced by ACE_Oneshot_Acceptor< SVC_HANDLER, >::accept(), ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::ACE_Accept_Strategy(), ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::ACE_Acceptor(), ACE_Oneshot_Acceptor< SVC_HANDLER, >::ACE_Oneshot_Acceptor(), ACE_Strategy_Acceptor< SVC_HANDLER, >::ACE_Strategy_Acceptor(), ACE_Oneshot_Acceptor< SVC_HANDLER, >::info(), ACE_Strategy_Acceptor< SVC_HANDLER, >::info(), ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::info(), ACE_Accept_Strategy< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::open(), ACE_Oneshot_Acceptor< SVC_HANDLER, >::open(), ACE_Strategy_Acceptor< SVC_HANDLER, >::open(), ACE_Acceptor< SVC_HANDLER, ACE_PEER_ACCEPTOR_2 >::open(), and ACE_Oneshot_Acceptor< SVC_HANDLER, >::shared_accept().

#define ACE_PEER_CONNECTOR   _ACE_PEER_CONNECTOR
 

Definition at line 976 of file Global_Macros.h.

Referenced by ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connector().

#define ACE_PEER_CONNECTOR_1   class _ACE_PEER_CONNECTOR
 

Definition at line 974 of file Global_Macros.h.

#define ACE_PEER_CONNECTOR_2   _ACE_PEER_CONNECTOR
 

Definition at line 975 of file Global_Macros.h.

#define ACE_PEER_CONNECTOR_ADDR   typename ACE_PEER_CONNECTOR::PEER_ADDR
 

Definition at line 977 of file Global_Macros.h.

Referenced by ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::check_hint_i(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_i(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_n(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::connect_svc_handler(), ACE_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_svc_handler(), ACE_Strategy_Connector< SVC_HANDLER, >::connect_svc_handler(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::connect_svc_handler(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::connect_svc_handler_i(), ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::find_or_create_svc_handler_i(), ACE_Connector< SVC_HANDLER, ACE_PEER_CONNECTOR_2 >::initialize_svc_handler(), and ACE_Cached_Connect_Strategy< SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX >::new_connection().

#define ACE_PEER_CONNECTOR_ADDR_ANY   ACE_PEER_ADDR_TYPEDEF::sap_any
 

Definition at line 978 of file Global_Macros.h.

#define ACE_PEER_STREAM   _ACE_PEER_STREAM
 

Definition at line 964 of file Global_Macros.h.

Referenced by ACE_Svc_Handler<, >::peer().

#define ACE_PEER_STREAM_1   class _ACE_PEER_STREAM
 

Definition at line 962 of file Global_Macros.h.

#define ACE_PEER_STREAM_2   _ACE_PEER_STREAM
 

Definition at line 963 of file Global_Macros.h.

#define ACE_PEER_STREAM_ADDR   typename _ACE_PEER_STREAM::PEER_ADDR
 

Definition at line 965 of file Global_Macros.h.

Referenced by ACE_Svc_Handler<, >::open().

#define ACE_POW  )     (((X) == 0)?1:(X-=1,X|=X>>1,X|=X>>2,X|=X>>4,X|=X>>8,X|=X>>16,(++X)))
 

Definition at line 87 of file Global_Macros.h.

#define ACE_PREPROC_CONCATENATE A,
 )     ACE_PREPROC_CONCATENATE_IMPL(A,B)
 

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 609 of file Global_Macros.h.

#define ACE_PREPROC_CONCATENATE_IMPL A,
 )     A ## B
 

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 608 of file Global_Macros.h.

#define ACE_READ_GUARD MUTEX,
OBJ,
LOCK   ) 
 

Value:

ACE_Read_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return;

Definition at line 185 of file Global_Macros.h.

Referenced by ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::find().

#define ACE_READ_GUARD_RETURN MUTEX,
OBJ,
LOCK,
RETURN   ) 
 

Value:

ACE_Read_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return RETURN;

Definition at line 188 of file Global_Macros.h.

Referenced by ACE_Message_Queue_Reverse_Iterator<>::advance(), ACE_Message_Queue_Iterator<>::advance(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::avail_chunks(), ACE_Message_Queue_Reverse_Iterator<>::done(), ACE_Message_Queue_Iterator<>::done(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::find(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::find(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::find(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::find(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::find(), ACE_Local_Name_Space<, ACE_LOCK >::list_name_entries_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_names_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_type_entries_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_types_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_value_entries_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_values_i(), ACE_Message_Queue_Reverse_Iterator<>::next(), ACE_Message_Queue_Iterator<>::next(), ACE_Local_Name_Space<, ACE_LOCK >::resolve_i(), and ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::test_invariant().

#define ACE_SBRK_MEMORY_POOL   ACE_Sbrk_Memory_Pool
 

Definition at line 1025 of file Global_Macros.h.

#define ACE_SEH_EXCEPT  )     while (0)
 

Definition at line 921 of file Global_Macros.h.

Referenced by ACE_Local_Name_Space<, ACE_LOCK >::create_manager(), ACE_Local_Name_Space<, ACE_LOCK >::dump(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::handle_events_i(), ACE_OS_Thread_Adapter::invoke(), ACE_Thread_Adapter::invoke_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_name_entries(), ACE_Local_Name_Space<, ACE_LOCK >::list_names(), ACE_Local_Name_Space<, ACE_LOCK >::list_type_entries(), ACE_Local_Name_Space<, ACE_LOCK >::list_types(), ACE_Local_Name_Space<, ACE_LOCK >::list_value_entries(), ACE_Local_Name_Space<, ACE_LOCK >::list_values(), ACE_Local_Name_Space<, ACE_LOCK >::resolve(), ACE_Local_Name_Space<, ACE_LOCK >::shared_bind(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_find(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_free(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_malloc(), ACE_OS::thread_mutex_init(), and ACE_Local_Name_Space<, ACE_LOCK >::unbind().

#define ACE_SEH_FINALLY   if (1)
 

Definition at line 922 of file Global_Macros.h.

Referenced by ACE_OS_Thread_Adapter::invoke(), and ACE_Thread_Adapter::invoke_i().

#define ACE_SEH_TRY   if (1)
 

Definition at line 920 of file Global_Macros.h.

Referenced by ACE_Local_Name_Space<, ACE_LOCK >::create_manager(), ACE_Local_Name_Space<, ACE_LOCK >::dump(), ACE_Select_Reactor_T< ACE_SELECT_REACTOR_TOKEN >::handle_events_i(), ACE_OS_Thread_Adapter::invoke(), ACE_Thread_Adapter::invoke_i(), ACE_Local_Name_Space<, ACE_LOCK >::list_name_entries(), ACE_Local_Name_Space<, ACE_LOCK >::list_names(), ACE_Local_Name_Space<, ACE_LOCK >::list_type_entries(), ACE_Local_Name_Space<, ACE_LOCK >::list_types(), ACE_Local_Name_Space<, ACE_LOCK >::list_value_entries(), ACE_Local_Name_Space<, ACE_LOCK >::list_values(), ACE_Local_Name_Space<, ACE_LOCK >::resolve(), ACE_Local_Name_Space<, ACE_LOCK >::shared_bind(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_find(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_free(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::shared_malloc(), ACE_OS::thread_mutex_init(), and ACE_Local_Name_Space<, ACE_LOCK >::unbind().

#define ACE_SERVER_ADDRESS H,
 )     H ACE_TEXT(":") P
 

Definition at line 81 of file Global_Macros.h.

#define ACE_SET_BITS WORD,
BITS   )     (WORD |= (BITS))
 

Definition at line 93 of file Global_Macros.h.

Referenced by ACE_MMAP_Memory_Pool::ACE_MMAP_Memory_Pool(), ACE_Thread_Manager::append_thr(), ACE_Select_Reactor_Impl::bit_ops(), ACE_Thread_Manager::cancel_thr(), ACE_Log_Msg_UNIX_Syslog::convert_log_mask(), ACE_Log_Msg::enable_debug_messages(), fopen_mode_to_open_mode_converter(), ACE_Thread_Manager::join(), ACE_Log_Msg::open(), ACE_Service_Config::open_i(), ACE_Logging_Strategy::parse_args(), ACE_Logging_Strategy::priorities(), ACE_Synch_Options::set(), ACE_Data_Block::set_flags(), ACE_Log_Msg::set_flags(), ACE::set_flags(), ACE_Message_Block::set_self_flags(), ACE_Thread_Manager::suspend_thr(), ACE_Thread_Descriptor::terminate(), ACE_TSS_Keys::test_and_set(), ACE_OS::thr_create(), ACE_Logging_Strategy::tokenize(), TSS_Cleanup_Instance::TSS_Cleanup_Instance(), TSS_Cleanup_Instance::valid(), ACE_Thread_Manager::wait(), ACE_Thread_Manager::wait_grp(), and ACE_Thread_Manager::wait_task().

#define ACE_SHARED_MEMORY_POOL   ACE_Shared_Memory_Pool
 

Definition at line 1026 of file Global_Macros.h.

#define ACE_SOCK_ACCEPTOR   ACE_SOCK_Acceptor
 

Definition at line 981 of file Global_Macros.h.

#define ACE_SOCK_CONNECTOR   ACE_SOCK_Connector
 

Definition at line 982 of file Global_Macros.h.

#define ACE_SOCK_DGRAM   ACE_SOCK_Dgram
 

Definition at line 984 of file Global_Macros.h.

#define ACE_SOCK_DGRAM_BCAST   ACE_SOCK_Dgram_Bcast
 

Definition at line 985 of file Global_Macros.h.

#define ACE_SOCK_DGRAM_MCAST   ACE_SOCK_Dgram_Mcast
 

Definition at line 986 of file Global_Macros.h.

#define ACE_SOCK_SEQPACK_ACCEPTOR   ACE_SOCK_SEQPACK_Acceptor
 

Definition at line 989 of file Global_Macros.h.

#define ACE_SOCK_SEQPACK_ASSOCIATION   ACE_SOCK_SEQPACK_Association
 

Definition at line 991 of file Global_Macros.h.

#define ACE_SOCK_SEQPACK_CONNECTOR   ACE_SOCK_SEQPACK_Connector
 

Definition at line 990 of file Global_Macros.h.

#define ACE_SOCK_STREAM   ACE_SOCK_Stream
 

Definition at line 983 of file Global_Macros.h.

#define ACE_SPIPE_ACCEPTOR   ACE_SPIPE_Acceptor
 

Definition at line 1009 of file Global_Macros.h.

#define ACE_SPIPE_CONNECTOR   ACE_SPIPE_Connector
 

Definition at line 1010 of file Global_Macros.h.

#define ACE_SPIPE_STREAM   ACE_SPIPE_Stream
 

Definition at line 1011 of file Global_Macros.h.

#define ACE_STATIC_CONSTANT TYPE,
ASSIGNMENT   )     static TYPE const ASSIGNMENT
 

Definition at line 1125 of file Global_Macros.h.

#define ACE_STATIC_SVC_DECLARE SERVICE_CLASS   )     extern ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS ;
 

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 503 of file Global_Macros.h.

#define ACE_STATIC_SVC_DECLARE_EXPORT EXPORT_NAME,
SERVICE_CLASS   )     extern EXPORT_NAME##_Export ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS;
 

NT compilers require the use of explicit directives to export and import symbols from a DLL. If you need to define a service in a dynamic library you should use this version instead. Normally ACE uses a macro to inject the correct export/import directives on NT. Naturally it also the macro expands to a blank on platforms that do not require such directives. The first argument (EXPORT_NAME) is the prefix for this export macro, the full name is formed by appending _Export. ACE provides tools to generate header files that define the macro correctly on all platforms, please see $ACE_ROOT/bin/generate_export_file.pl

Parameters:
EXPORT_NAME The export macro name prefix.
SERVICE_CLASS The name of the class implementing the service.

Definition at line 524 of file Global_Macros.h.

#define ACE_STATIC_SVC_DEFINE SERVICE_CLASS,
NAME,
TYPE,
FN,
FLAGS,
ACTIVE   )     ACE_Static_Svc_Descriptor ace_svc_desc_##SERVICE_CLASS = { NAME, TYPE, FN, FLAGS, ACTIVE };
 

The service configurator requires several arguments to build and control an statically linked service, including its name, the factory function used to construct the service, and some flags. All those parameters are configured in a single structure, an instance of this structure is statically initialized using the following macro.

Parameters:
SERVICE_CLASS The name of the class that implements the service, must be derived (directly or indirectly) from ACE_Service_Object.
NAME The name for this service, this name is used by the service configurator to match configuration options provided in the svc.conf file.
TYPE The type of object. Objects can be streams or service objects. Please read the ACE_Service_Configurator and ASX documentation for more details.
FN The name of the factory function, usually the ACE_SVC_NAME macro can be used to generate the name. The factory function is often defined using ACE_FACTORY_DECLARE and ACE_FACTORY_DEFINE.
FLAGS Flags to control the ownership and lifecycle of the object. Please read the ACE_Service_Configurator documentation for more details.
ACTIVE If not zero then a thread will be dedicate to the service. Please read the ACE_Service_Configurator documentation for more details.

Definition at line 557 of file Global_Macros.h.

Referenced by ACE_Object_Manager_Preallocations::ACE_Object_Manager_Preallocations().

#define ACE_STATIC_SVC_REGISTER SERVICE_CLASS   )     do {} while (0)
 

The macro should be used in the header file where the service is declared, its only argument is usually the name of the class that implements the service.

Parameters:
SERVICE_CLASS The name of the class implementing the service.

Definition at line 600 of file Global_Macros.h.

#define ACE_STATIC_SVC_REQUIRE SERVICE_CLASS   ) 
 

Value:

class ACE_Static_Svc_##SERVICE_CLASS {\
public:\
  ACE_Static_Svc_##SERVICE_CLASS() { \
    ACE_Service_Config::insert (\
         &ace_svc_desc_##SERVICE_CLASS); \
    } \
};\
static ACE_Static_Svc_##SERVICE_CLASS ace_static_svc_##SERVICE_CLASS;
Automatically register a service with the service configurator.

In some applications the services must be automatically registered with the service configurator, before main() starts. The ACE_STATIC_SVC_REQUIRE macro defines a class whose constructor register the service, it also defines a static instance of that class to ensure that the service is registered before main.

On platforms that lack adequate support for static C++ objects the macro ACE_STATIC_SVC_REGISTER can be used to explicitly register the service.

Todo:
One class per-Service_Object seems wasteful. It should be possible to define a single class and re-use it for all the service objects, just by passing the Service_Descriptor as an argument to the constructor.

Definition at line 591 of file Global_Macros.h.

#define ACE_SVC_FACTORY_DECLARE  )     ACE_FACTORY_DECLARE (ACE_Svc, X)
 

Definition at line 775 of file Global_Macros.h.

#define ACE_SVC_FACTORY_DEFINE  )     ACE_FACTORY_DEFINE (ACE_Svc, X)
 

Definition at line 776 of file Global_Macros.h.

#define ACE_SVC_INVOKE SERVICE_CLASS   )     ACE_SVC_NAME(SERVICE_CLASS) (0)
 

The canonical way to invoke (i.e. construct) a service factory method.

Definition at line 764 of file Global_Macros.h.

#define ACE_SVC_NAME SERVICE_CLASS   )     ACE_MAKE_SVC_CONFIG_FACTORY_NAME(ACE_VERSIONED_NAMESPACE_NAME,SERVICE_CLASS)
 

The canonical name for a service factory method.

Definition at line 760 of file Global_Macros.h.

Referenced by ACE_Object_Manager_Preallocations::ACE_Object_Manager_Preallocations().

#define ACE_SYNCH_CONDITION_T   typename _ACE_SYNCH::CONDITION
 

Definition at line 952 of file Global_Macros.h.

#define ACE_SYNCH_DECL   class _ACE_SYNCH
 

Definition at line 949 of file Global_Macros.h.

#define ACE_SYNCH_MUTEX_T   typename _ACE_SYNCH::MUTEX
 

Definition at line 951 of file Global_Macros.h.

Referenced by ACE_Message_Queue< ACE_SYNCH_USE >::activate(), ACE_Message_Queue_Reverse_Iterator<>::advance(), ACE_Message_Queue_Iterator<>::advance(), ACE_Stream<>::close(), ACE_Message_Queue< ACE_SYNCH_USE >::close(), ACE_Message_Queue< ACE_SYNCH_USE >::deactivate(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_deadline(), ACE_Dynamic_Message_Queue<>::dequeue_head(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_head(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_prio(), ACE_Message_Queue< ACE_SYNCH_USE >::dequeue_tail(), ACE_Message_Queue_Reverse_Iterator<>::done(), ACE_Message_Queue_Iterator<>::done(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_deadline(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_head(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_prio(), ACE_Message_Queue< ACE_SYNCH_USE >::enqueue_tail(), ACE_Buffered_Svc_Handler<, >::flush(), ACE_Message_Queue< ACE_SYNCH_USE >::flush(), ACE_Message_Queue< ACE_SYNCH_USE >::high_water_mark(), ACE_Message_Queue< ACE_SYNCH_USE >::is_empty(), ACE_Message_Queue< ACE_SYNCH_USE >::is_full(), ACE_Stream<>::link(), ACE_Message_Queue< ACE_SYNCH_USE >::low_water_mark(), ACE_Message_Queue< ACE_SYNCH_USE >::message_bytes(), ACE_Message_Queue< ACE_SYNCH_USE >::message_count(), ACE_Message_Queue< ACE_SYNCH_USE >::message_length(), ACE_Message_Queue_Reverse_Iterator<>::next(), ACE_Message_Queue_Iterator<>::next(), ACE_Stream<>::open(), ACE_Message_Queue< ACE_SYNCH_USE >::peek_dequeue_head(), ACE_Message_Queue< ACE_SYNCH_USE >::pulse(), ACE_Buffered_Svc_Handler<, >::put(), and ACE_Stream<>::unlink().

#define ACE_SYNCH_SEMAPHORE_T   typename _ACE_SYNCH::SEMAPHORE
 

Definition at line 953 of file Global_Macros.h.

#define ACE_SYNCH_USE   _ACE_SYNCH
 

Definition at line 950 of file Global_Macros.h.

Referenced by ACE_Buffered_Svc_Handler<, >::ACE_Buffered_Svc_Handler(), ACE_Dynamic_Message_Queue<>::ACE_Dynamic_Message_Queue(), and ACE_Svc_Handler<, >::ACE_Svc_Handler().

#define ACE_THROW_SPEC  )     throw X
 

Definition at line 129 of file Global_Macros.h.

#define ACE_TLI_ACCEPTOR   ACE_TLI_Acceptor
 

Definition at line 1004 of file Global_Macros.h.

#define ACE_TLI_CONNECTOR   ACE_TLI_Connector
 

Definition at line 1005 of file Global_Macros.h.

#define ACE_TLI_STREAM   ACE_TLI_Stream
 

Definition at line 1006 of file Global_Macros.h.

#define ACE_UNIMPLEMENTED_FUNC  )     f;
 

Definition at line 104 of file Global_Macros.h.

#define ACE_UPIPE_ACCEPTOR   ACE_UPIPE_Acceptor
 

Definition at line 1014 of file Global_Macros.h.

#define ACE_UPIPE_CONNECTOR   ACE_UPIPE_Connector
 

Definition at line 1015 of file Global_Macros.h.

#define ACE_UPIPE_STREAM   ACE_UPIPE_Stream
 

Definition at line 1016 of file Global_Macros.h.

#define ACE_WRITE_GUARD MUTEX,
OBJ,
LOCK   ) 
 

Value:

ACE_Write_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return;

Definition at line 179 of file Global_Macros.h.

Referenced by ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::ACE_RB_Tree(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::clear(), and ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::operator=().

#define ACE_WRITE_GUARD_RETURN MUTEX,
OBJ,
LOCK,
RETURN   ) 
 

Value:

ACE_Write_Guard< MUTEX > OBJ (LOCK); \
    if (OBJ.locked () == 0) return RETURN;

Definition at line 182 of file Global_Macros.h.

Referenced by ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::bind(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::bind(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::bind(), ACE_Local_Name_Space<, ACE_LOCK >::bind(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::bind(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::bind(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::close(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::close(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::close(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::close(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::current_size(), ACE_Filecache::fetch(), ACE_Filecache::finish(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::insert(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::open(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::open(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::open(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::open(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::rebind(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::rebind(), ACE_Local_Name_Space<, ACE_LOCK >::rebind(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::rebind(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::rebind(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::remove(), ACE_Filecache::remove(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::total_size(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::trybind(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::trybind(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::trybind(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::trybind(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::trybind(), ACE_RB_Tree< EXT_ID, INT_ID, COMPARE_KEYS, ACE_LOCK >::unbind(), ACE_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::unbind(), ACE_Malloc_T< ACE_MEM_POOL_2, ACE_LOCK, ACE_CB >::unbind(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind(), ACE_Hash_Multi_Map_Manager< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_all(), ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::unbind_all(), and ACE_Local_Name_Space<, ACE_LOCK >::unbind_i().


Typedef Documentation

typedef void(* ACE_Service_Object_Exterminator)(void *)
 

Service Objects, i.e., objects dynamically loaded via the service configurator, must provide a destructor function with the following prototype to perform object cleanup.

Definition at line 471 of file Global_Macros.h.

Referenced by ACE_Service_Object_Type::ACE_Service_Object_Type(), ACE_Service_Type_Impl::ACE_Service_Type_Impl(), ACE_Service_Config::create_service_type_impl(), and ACE_Service_Gestalt::process_directive_i().


Generated on Sun Jan 27 12:24:21 2008 for ACE by doxygen 1.3.6