STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
stdext::threads::_Scoped_timed_lock_imp< _Mutex > Class Template Reference

Public Types

typedef _Mutex _My_mtx
 
typedef _Scoped_timed_lock_imp< _My_mtx_Myt
 
typedef _Lock_base< _Mutex > _My_base
 

Public Member Functions

 _Scoped_timed_lock_imp (_My_mtx &_Mx, const xtime &_Xt)
 
 _Scoped_timed_lock_imp (_My_mtx &_Mx, bool _Lck)
 
 operator const void * () const
 
bool locked () const
 
void lock ()
 
bool timed_lock (const xtime &_Xt)
 
void unlock ()
 

Private Member Functions

 _Scoped_timed_lock_imp (const _Myt &)
 
_Mytoperator= (const _Myt &)
 

Private Attributes

_Lock_base< _Mutex > _My_lock
 

Friends

class condition
 

Member Typedef Documentation

template<class _Mutex >
typedef _Lock_base<_Mutex> stdext::threads::_Scoped_timed_lock_imp< _Mutex >::_My_base
template<class _Mutex >
typedef _Mutex stdext::threads::_Scoped_timed_lock_imp< _Mutex >::_My_mtx
template<class _Mutex >
typedef _Scoped_timed_lock_imp<_My_mtx> stdext::threads::_Scoped_timed_lock_imp< _Mutex >::_Myt

Constructor & Destructor Documentation

template<class _Mutex >
stdext::threads::_Scoped_timed_lock_imp< _Mutex >::_Scoped_timed_lock_imp ( _My_mtx _Mx,
const xtime _Xt 
)
inline
210  : _My_lock(_Mx)
211  { // construct locked
212  timed_lock(_Xt);
213  }
bool timed_lock(const xtime &_Xt)
Definition: xmutex:237
_Lock_base< _Mutex > _My_lock
Definition: xmutex:249
template<class _Mutex >
stdext::threads::_Scoped_timed_lock_imp< _Mutex >::_Scoped_timed_lock_imp ( _My_mtx _Mx,
bool  _Lck 
)
inline
216  : _My_lock(_Mx)
217  { //construct locked conditionally
218  if (_Lck)
219  lock();
220  }
void lock()
Definition: xmutex:232
_Lock_base< _Mutex > _My_lock
Definition: xmutex:249
template<class _Mutex >
stdext::threads::_Scoped_timed_lock_imp< _Mutex >::_Scoped_timed_lock_imp ( const _Myt )
private

Member Function Documentation

template<class _Mutex >
void stdext::threads::_Scoped_timed_lock_imp< _Mutex >::lock ( )
inline
233  { // lock it
234  _My_lock.lock();
235  }
_Lock_base< _Mutex > _My_lock
Definition: xmutex:249
template<class _Mutex >
bool stdext::threads::_Scoped_timed_lock_imp< _Mutex >::locked ( ) const
inline
228  { // test if locked
229  return (_My_lock.locked());
230  }
_Lock_base< _Mutex > _My_lock
Definition: xmutex:249
template<class _Mutex >
stdext::threads::_Scoped_timed_lock_imp< _Mutex >::operator const void * ( ) const
inline
223  { // test if locked
224  return (_My_lock);
225  }
_Lock_base< _Mutex > _My_lock
Definition: xmutex:249
template<class _Mutex >
_Myt& stdext::threads::_Scoped_timed_lock_imp< _Mutex >::operator= ( const _Myt )
private
template<class _Mutex >
bool stdext::threads::_Scoped_timed_lock_imp< _Mutex >::timed_lock ( const xtime _Xt)
inline
238  { // lock it for a time
239  return (_My_lock.timed_lock(_Xt));
240  }
_Lock_base< _Mutex > _My_lock
Definition: xmutex:249
template<class _Mutex >
void stdext::threads::_Scoped_timed_lock_imp< _Mutex >::unlock ( )
inline
243  { // unlock it
244  _My_lock.unlock();
245  }
_Lock_base< _Mutex > _My_lock
Definition: xmutex:249

Friends And Related Function Documentation

template<class _Mutex >
friend class condition
friend

Member Data Documentation

template<class _Mutex >
_Lock_base<_Mutex> stdext::threads::_Scoped_timed_lock_imp< _Mutex >::_My_lock
private

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