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

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 >
void* stdext::allocators::sync_shared< _Cache >::allocate ( size_t  _Count)
inline
124  { // allocate from the cache
126  return (_Mycache.allocate(_Count));
127  }
void lock(_Lock0 &_Lk0, _Lock1 &_Lk1, _LockN &..._LkN)
Definition: mutex:417
_Diff _Count
Definition: algorithm:1941
static _Cache _Mycache
Definition: allocators:141
_Scoped_lock scoped_lock
Definition: allocators:34
static threads::mutex _Mymtx
Definition: allocators:142
template<class _Cache >
void stdext::allocators::sync_shared< _Cache >::deallocate ( void _Ptr,
size_t  _Count 
)
inline
130  { // deallocate through the cache
132  _Mycache.deallocate(_Ptr, _Count);
133  }
void lock(_Lock0 &_Lk0, _Lock1 &_Lk1, _LockN &..._LkN)
Definition: mutex:417
_Diff _Count
Definition: algorithm:1941
static _Cache _Mycache
Definition: allocators:141
_Scoped_lock scoped_lock
Definition: allocators:34
static threads::mutex _Mymtx
Definition: allocators:142
template<class _Cache >
bool stdext::allocators::sync_shared< _Cache >::equals ( const sync_shared< _Cache > &  _Other) const
inline
136  { // compare two caches for equality
137  return (_Mycache.equals(_Other._Mycache));
138  }
static _Cache _Mycache
Definition: allocators:141

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: