STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
stdext::threads::_Mutex_base Class Reference
Inheritance diagram for stdext::threads::_Mutex_base:
stdext::threads::mutex stdext::threads::recursive_mutex stdext::threads::recursive_timed_mutex stdext::threads::recursive_try_mutex stdext::threads::timed_mutex stdext::threads::try_mutex

Public Member Functions

 _Mutex_base (int _Type)
 
 ~_Mutex_base () _NOEXCEPT
 
int lock ()
 
int try_lock ()
 
int timed_lock (const xtime &_Xt)
 
int unlock ()
 

Public Attributes

mtx_t _Mtx
 

Private Member Functions

 _Mutex_base (const _Mutex_base &)
 
_Mutex_baseoperator= (const _Mutex_base &)
 

Friends

class _Lock_base< _Mutex_base >
 

Constructor & Destructor Documentation

stdext::threads::_Mutex_base::_Mutex_base ( int  _Type)
inline
261  { // construct
262  if (mtx_init(&_Mtx, _Type) != _Thrd_success)
264  }
#define mtx_init(mtx, typ)
Definition: threads.h:45
Definition: xthreads.h:17
_In_ wctype_t _Type
Definition: ctype.h:205
_CRTIMP2_PURE void __cdecl _Throw_lock_error()
mtx_t _Mtx
Definition: xmutex:291
stdext::threads::_Mutex_base::~_Mutex_base ( )
inline
267  { // destroy
268  mtx_destroy(&_Mtx);
269  }
#define mtx_destroy(mtx)
Definition: threads.h:46
mtx_t _Mtx
Definition: xmutex:291
stdext::threads::_Mutex_base::_Mutex_base ( const _Mutex_base )
private

Member Function Documentation

int stdext::threads::_Mutex_base::lock ( )
inline
272  { // lock it
273  return (mtx_lock(&_Mtx));
274  }
#define mtx_lock(mtx)
Definition: threads.h:48
mtx_t _Mtx
Definition: xmutex:291
_Mutex_base& stdext::threads::_Mutex_base::operator= ( const _Mutex_base )
private
int stdext::threads::_Mutex_base::timed_lock ( const xtime _Xt)
inline
282  { // lock for a time
283  return (mtx_timedlock(&_Mtx, &_Xt));
284  }
#define mtx_timedlock(mtx, tm)
Definition: threads.h:50
mtx_t _Mtx
Definition: xmutex:291
int stdext::threads::_Mutex_base::try_lock ( )
inline
277  { // try the lock
278  return (mtx_trylock(&_Mtx));
279  }
#define mtx_trylock(mtx)
Definition: threads.h:49
mtx_t _Mtx
Definition: xmutex:291
int stdext::threads::_Mutex_base::unlock ( )
inline
287  { // unlock it
288  return (mtx_unlock(&_Mtx));
289  }
#define mtx_unlock(mtx)
Definition: threads.h:51
mtx_t _Mtx
Definition: xmutex:291

Friends And Related Function Documentation

friend class _Lock_base< _Mutex_base >
friend

Member Data Documentation

mtx_t stdext::threads::_Mutex_base::_Mtx

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