diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-06 06:50:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-06 06:50:37 +0000 |
commit | 2f662b966b933653ee11f5b2f58c9be06dd3925f (patch) | |
tree | c59f73afa48ded43058e918c7414ac6186302a95 /TAO/orbsvcs/Event_Service/Memory_Pools.i | |
parent | de8d5cc38b9acbfa8f0f4acf5d7453698876f3b8 (diff) | |
download | ATCD-2f662b966b933653ee11f5b2f58c9be06dd3925f.tar.gz |
This commit was manufactured by cvs2svn to create tag 'ACE_4_4_32'.ACE_4_4_32
Diffstat (limited to 'TAO/orbsvcs/Event_Service/Memory_Pools.i')
-rw-r--r-- | TAO/orbsvcs/Event_Service/Memory_Pools.i | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/TAO/orbsvcs/Event_Service/Memory_Pools.i b/TAO/orbsvcs/Event_Service/Memory_Pools.i deleted file mode 100644 index 3f6e3b26223..00000000000 --- a/TAO/orbsvcs/Event_Service/Memory_Pools.i +++ /dev/null @@ -1,54 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - -ACE_INLINE void * -ACE_ES_Memory_Pools::new_Event_Container (void) -{ - return Event_Container_->malloc (sizeof (ACE_ES_Event_Container)); -} - -ACE_INLINE void -ACE_ES_Memory_Pools::delete_Event_Container (void *mem) -{ - Event_Container_->free (mem); -} - -ACE_INLINE void * -ACE_ES_Memory_Pools::new_Dispatch_Request (void) -{ - return Dispatch_Request_->malloc (sizeof (ACE_ES_Dispatch_Request)); -} - -ACE_INLINE void -ACE_ES_Memory_Pools::delete_Dispatch_Request (void *mem) -{ - Dispatch_Request_->free (mem); -} - -#define USE_MEM_POOLS 1 - -ACE_INLINE void * -ACE_ES_Memory_Pools::new_Event (size_t len) -{ -#if USE_MEM_POOLS - const u_int ev_size = sizeof (RtecEventComm::Event); - const u_int size = (ev_size % ACE_MALLOC_ALIGN) ? - ((ev_size / ACE_MALLOC_ALIGN) + 1) * ACE_MALLOC_ALIGN : ev_size; - - char *const addr = (char *) Event_->malloc (len * size); -#else - char *const addr = new char[len * sizeof (ACE_ES_Event)]; -#endif - - return addr; -} - -ACE_INLINE void -ACE_ES_Memory_Pools::delete_Event (void *mem) -{ -#if USE_MEM_POOLS - Event_->free (mem); -#else - delete [] mem; -#endif -} |