summaryrefslogtreecommitdiff
path: root/ace/Malloc_T.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-31 12:31:24 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-31 12:31:24 +0000
commit3cacfbcbebb9c7e2489bfc12d89e92e798196790 (patch)
tree05042c348243f76792a1b044b74acadae81beba4 /ace/Malloc_T.i
parentc4c0001370152a33c16e3507a0b304e411c2163d (diff)
downloadATCD-3cacfbcbebb9c7e2489bfc12d89e92e798196790.tar.gz
replaced LOCK with ACE_LOCK
Diffstat (limited to 'ace/Malloc_T.i')
-rw-r--r--ace/Malloc_T.i38
1 files changed, 19 insertions, 19 deletions
diff --git a/ace/Malloc_T.i b/ace/Malloc_T.i
index 526cbee0361..c6ca4e7fad0 100644
--- a/ace/Malloc_T.i
+++ b/ace/Malloc_T.i
@@ -21,8 +21,8 @@ ACE_Cached_Mem_Pool_Node<T>::set_next (ACE_Cached_Mem_Pool_Node<T> *ptr)
this->next_ = ptr;
}
-template <class T, class LOCK> ACE_INLINE void *
-ACE_Cached_Allocator<T, LOCK>::malloc (size_t nbytes)
+template <class T, class ACE_LOCK> ACE_INLINE void *
+ACE_Cached_Allocator<T, ACE_LOCK>::malloc (size_t nbytes)
{
// Check if size requested fits within pre-determined size.
if (nbytes > sizeof (T))
@@ -33,8 +33,8 @@ ACE_Cached_Allocator<T, LOCK>::malloc (size_t nbytes)
return this->free_list_.remove ()->addr ();
}
-template <class T, class LOCK> ACE_INLINE void
-ACE_Cached_Allocator<T, LOCK>::free (void * ptr)
+template <class T, class ACE_LOCK> ACE_INLINE void
+ACE_Cached_Allocator<T, ACE_LOCK>::free (void * ptr)
{
this->free_list_.add ((ACE_Cached_Mem_Pool_Node<T> *) ptr) ;
}
@@ -149,38 +149,38 @@ ACE_Allocator_Adapter<MALLOC>::protect (void *addr, size_t len, int flags)
return this->allocator_.protect (addr, len, flags);
}
-template <ACE_MEM_POOL_1, class LOCK> ACE_MEM_POOL &
-ACE_Malloc<ACE_MEM_POOL_2, LOCK>::memory_pool (void)
+template <ACE_MEM_POOL_1, class ACE_LOCK> ACE_MEM_POOL &
+ACE_Malloc<ACE_MEM_POOL_2, ACE_LOCK>::memory_pool (void)
{
- ACE_TRACE ("ACE_Malloc<MEMORY_POOL, LOCK>::memory_pool");
+ ACE_TRACE ("ACE_Malloc<MEMORY_POOL, ACE_LOCK>::memory_pool");
return this->memory_pool_;
}
-template <ACE_MEM_POOL_1, class LOCK> int
-ACE_Malloc<ACE_MEM_POOL_2, LOCK>::sync (ssize_t len, int flags)
+template <ACE_MEM_POOL_1, class ACE_LOCK> int
+ACE_Malloc<ACE_MEM_POOL_2, ACE_LOCK>::sync (ssize_t len, int flags)
{
- ACE_TRACE ("ACE_Malloc<MEMORY_POOL, LOCK>::sync");
+ ACE_TRACE ("ACE_Malloc<MEMORY_POOL, ACE_LOCK>::sync");
return this->memory_pool_.sync (len, flags);
}
-template <ACE_MEM_POOL_1, class LOCK> int
-ACE_Malloc<ACE_MEM_POOL_2, LOCK>::sync (void *addr, size_t len, int flags)
+template <ACE_MEM_POOL_1, class ACE_LOCK> int
+ACE_Malloc<ACE_MEM_POOL_2, ACE_LOCK>::sync (void *addr, size_t len, int flags)
{
- ACE_TRACE ("ACE_Malloc<MEMORY_POOL, LOCK>::sync");
+ ACE_TRACE ("ACE_Malloc<MEMORY_POOL, ACE_LOCK>::sync");
return this->memory_pool_.sync (addr, len, flags);
}
-template <ACE_MEM_POOL_1, class LOCK> int
-ACE_Malloc<ACE_MEM_POOL_2, LOCK>::protect (ssize_t len, int flags)
+template <ACE_MEM_POOL_1, class ACE_LOCK> int
+ACE_Malloc<ACE_MEM_POOL_2, ACE_LOCK>::protect (ssize_t len, int flags)
{
- ACE_TRACE ("ACE_Malloc<MEMORY_POOL, LOCK>::protect");
+ ACE_TRACE ("ACE_Malloc<MEMORY_POOL, ACE_LOCK>::protect");
return this->memory_pool_.protect (len, flags);
}
-template <ACE_MEM_POOL_1, class LOCK> int
-ACE_Malloc<ACE_MEM_POOL_2, LOCK>::protect (void *addr, size_t len, int flags)
+template <ACE_MEM_POOL_1, class ACE_LOCK> int
+ACE_Malloc<ACE_MEM_POOL_2, ACE_LOCK>::protect (void *addr, size_t len, int flags)
{
- ACE_TRACE ("ACE_Malloc<MEMORY_POOL, LOCK>::protect");
+ ACE_TRACE ("ACE_Malloc<MEMORY_POOL, ACE_LOCK>::protect");
return this->memory_pool_.protect (addr, len, flags);
}