STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Typedefs | Functions | Variables
stdext::threads Namespace Reference

Classes

class  _Lock_base
 
class  _Mutex_base
 
class  _Scoped_lock
 
class  _Scoped_lock_imp
 
class  _Scoped_timed_lock_imp
 
class  _Scoped_try_lock_imp
 
class  condition
 
class  lock_error
 
class  mutex
 
class  recursive_mutex
 
class  recursive_timed_mutex
 
class  recursive_try_mutex
 
class  thread
 
class  thread_group
 
class  thread_resource_error
 
class  thread_specific_ptr
 
class  timed_mutex
 
class  try_mutex
 

Typedefs

typedef ::_Once_flag once_flag
 

Functions

_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_new (void *&)
 
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_delete (void *)
 
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_lock (void *)
 
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_unlock (void *)
 
template<class _Scopedlock >
void notify_all_at_thread_exit (condition &_Cond, _Scopedlock &_Lock)
 
_CRTIMP2_PURE void __cdecl _Throw_lock_error ()
 
_CRTIMP2_PURE void __cdecl _Throw_resource_error ()
 
int _Validate (int _Res)
 
void call_once (_Once_callback_t _Func, _Once_flag &_Flag)
 

Variables

const _Once_flag once_init = _ONCE_FLAG_INIT
 

Typedef Documentation

Function Documentation

_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL stdext::threads::_Mtx_delete ( void )
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL stdext::threads::_Mtx_lock ( void )
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL stdext::threads::_Mtx_new ( void *&  )
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL stdext::threads::_Mtx_unlock ( void )
_CRTIMP2_PURE void __cdecl stdext::threads::_Throw_lock_error ( )
_CRTIMP2_PURE void __cdecl stdext::threads::_Throw_resource_error ( )
int stdext::threads::_Validate ( int  _Res)
inline
46  { // convert error code to exception
47  if (_Res == thrd_nomem)
48  _STD _Xbad_alloc();
49  else if (_Res == thrd_error)
51  return (_Res);
52  }
_CRTIMP2_PURE void __cdecl _Throw_resource_error()
Definition: threads.h:16
Definition: threads.h:19
void stdext::threads::call_once ( _Once_callback_t  _Func,
_Once_flag _Flag 
)
inline
21  { // execute func exactly once
22  ::_Call_once(&_Flag, _Func);
23  }
_CRTIMP2_PURE void __cdecl _Call_once(_Once_flag *, _Once_callback_t)
template<class _Scopedlock >
void stdext::threads::notify_all_at_thread_exit ( condition &  _Cond,
_Scopedlock &  _Lock 
)
99  { // register _Cond for notify_all at thread exit
100  if (!_Lock)
102  _Cond._Register(_Lock);
103  }
_CRTIMP2_PURE void __cdecl _Throw_lock_error()

Variable Documentation

const _Once_flag stdext::threads::once_init = _ONCE_FLAG_INIT