library of assembled shared sources

http://lass.cocamware.com

lass::util::AllocatorLocked< Allocator, Lock, Locker > Class Template Reference
[Allocator]

Guard a MT unsafe allocator with some lock. More...

#include <allocator.h>

Inheritance diagram for lass::util::AllocatorLocked< Allocator, Lock, Locker >:

Inheritance graph
[legend]
Collaboration diagram for lass::util::AllocatorLocked< Allocator, Lock, Locker >:

Collaboration graph
[legend]

Public Member Functions

 AllocatorLocked ()
 AllocatorLocked (size_t size)
void * allocate ()
void * allocate (size_t size)
void deallocate (void *mem)
void deallocate (void *mem, size_t size)

Private Attributes

Lock lock_

Detailed Description

template<typename Allocator, typename Lock, typename Locker = util::Locker<Lock>>
class lass::util::AllocatorLocked< Allocator, Lock, Locker >

Guard a MT unsafe allocator with some lock.

Definition at line 269 of file allocator.h.


Constructor & Destructor Documentation

template<typename Allocator , typename Lock , typename Locker = util::Locker<Lock>>
lass::util::AllocatorLocked< Allocator, Lock, Locker >::AllocatorLocked (  )  [inline]

Definition at line 272 of file allocator.h.

template<typename Allocator , typename Lock , typename Locker = util::Locker<Lock>>
lass::util::AllocatorLocked< Allocator, Lock, Locker >::AllocatorLocked ( size_t  size  )  [inline]

Definition at line 276 of file allocator.h.


Member Function Documentation

template<typename Allocator , typename Lock , typename Locker = util::Locker<Lock>>
void* lass::util::AllocatorLocked< Allocator, Lock, Locker >::allocate (  )  [inline]

Definition at line 280 of file allocator.h.

template<typename Allocator , typename Lock , typename Locker = util::Locker<Lock>>
void* lass::util::AllocatorLocked< Allocator, Lock, Locker >::allocate ( size_t  size  )  [inline]

Definition at line 285 of file allocator.h.

template<typename Allocator , typename Lock , typename Locker = util::Locker<Lock>>
void lass::util::AllocatorLocked< Allocator, Lock, Locker >::deallocate ( void *  mem  )  [inline]

Definition at line 290 of file allocator.h.

template<typename Allocator , typename Lock , typename Locker = util::Locker<Lock>>
void lass::util::AllocatorLocked< Allocator, Lock, Locker >::deallocate ( void *  mem,
size_t  size 
) [inline]

Definition at line 295 of file allocator.h.


Field Documentation

template<typename Allocator , typename Lock , typename Locker = util::Locker<Lock>>
Lock lass::util::AllocatorLocked< Allocator, Lock, Locker >::lock_ [private]

Definition at line 301 of file allocator.h.


The documentation for this class was generated from the following file:

Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by doxygen 1.5.7.1
SourceForge.net Logo