STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Private Attributes | List of all members
stdext::allocators::sync_shared< _Cache > Class Template Reference

Public Member Functions

_DECLSPEC_ALLOCATOR voidallocate (size_t _Count)
 
void deallocate (void *_Ptr, size_t _Count)
 
bool equals (const sync_shared< _Cache > &_Other) const
 

Static Private Attributes

static _Cache _Mycache
 
static threads::mutex _Mymtx
 

Member Function Documentation

template<class _Cache >
_DECLSPEC_ALLOCATOR void* stdext::allocators::sync_shared< _Cache >::allocate ( size_t  _Count)
inline
130  { // allocate from the cache
132  return (_Mycache.allocate(_Count));
133  }
unsigned int _Count
Definition: xcomplex:668
void lock(_Lock0 &_Lk0, _Lock1 &_Lk1, _LockN &..._LkN)
Definition: mutex:157
static _Cache _Mycache
Definition: allocators:147
_Scoped_lock scoped_lock
Definition: allocators:40
static threads::mutex _Mymtx
Definition: allocators:148
template<class _Cache >
void stdext::allocators::sync_shared< _Cache >::deallocate ( void _Ptr,
size_t  _Count 
)
inline
136  { // deallocate through the cache
138  _Mycache.deallocate(_Ptr, _Count);
139  }
unsigned int _Count
Definition: xcomplex:668
void lock(_Lock0 &_Lk0, _Lock1 &_Lk1, _LockN &..._LkN)
Definition: mutex:157
static _Cache _Mycache
Definition: allocators:147
_Scoped_lock scoped_lock
Definition: allocators:40
static threads::mutex _Mymtx
Definition: allocators:148
template<class _Cache >
bool stdext::allocators::sync_shared< _Cache >::equals ( const sync_shared< _Cache > &  _Other) const
inline
142  { // compare two caches for equality
143  return (_Mycache.equals(_Other._Mycache));
144  }
static _Cache _Mycache
Definition: allocators:147

Member Data Documentation

template<class _Cache >
_Cache stdext::allocators::sync_shared< _Cache >::_Mycache
staticprivate
template<class _Cache >
threads::mutex stdext::allocators::sync_shared< _Cache >::_Mymtx
staticprivate

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