STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Typedefs | Enumerations | Functions
xthreads.h File Reference
#include <thr/xthrcommon.h>
#include <thr/xtimec.h>
#include <limits.h>

Go to the source code of this file.

Macros

#define _THR_XTHREADS_H
 
#define _TSS_DTOR_ITERATIONS   _TSS_DTOR_ITERATIONS_IMP
 

Typedefs

typedef _Thrd_imp_t _Thrd_t
 
typedef int(* _Thrd_start_t) (void *)
 
typedef _Mtx_imp_t _Mtx_t
 
typedef void_Smtx_t
 
typedef _Cnd_imp_t _Cnd_t
 
typedef _Tss_imp_t _Tss_t
 
typedef void(* _Tss_dtor_t) (void *)
 

Enumerations

enum  {
  _Thrd_success, _Thrd_nomem, _Thrd_timedout, _Thrd_busy,
  _Thrd_error
}
 
enum  { _Mtx_plain = 0x01, _Mtx_try = 0x02, _Mtx_timed = 0x04, _Mtx_recursive = 0x100 }
 

Functions

_CRTIMP2_PURE int __cdecl _Thrd_create (_Thrd_t *, _Thrd_start_t, void *)
 
_CRTIMP2_PURE int __cdecl _Thrd_detach (_Thrd_t)
 
_CRTIMP2_PURE void __cdecl _Thrd_exit (int)
 
_CRTIMP2_PURE int __cdecl _Thrd_join (_Thrd_t, int *)
 
_CRTIMP2_PURE void __cdecl _Thrd_sleep (const xtime *)
 
_CRTIMP2_PURE void __cdecl _Thrd_yield (void)
 
_CRTIMP2_PURE unsigned int __cdecl _Thrd_hardware_concurrency (void)
 
_CRTIMP2_PURE int __cdecl _Thrd_equal (_Thrd_t, _Thrd_t)
 
_CRTIMP2_PURE _Thrd_t __cdecl _Thrd_current (void)
 
_CRTIMP2_PURE _Thrd_id_t __cdecl _Thrd_id (void)
 
_CRTIMP2_PURE int __cdecl _Mtx_init (_Mtx_t *, int)
 
_CRTIMP2_PURE void __cdecl _Mtx_destroy (_Mtx_t)
 
_CRTIMP2_PURE void __cdecl _Mtx_init_in_situ (_Mtx_t, int)
 
_CRTIMP2_PURE void __cdecl _Mtx_destroy_in_situ (_Mtx_t)
 
_CRTIMP2_PURE int __cdecl _Mtx_current_owns (_Mtx_t)
 
_CRTIMP2_PURE int __cdecl _Mtx_lock (_Mtx_t)
 
_CRTIMP2_PURE int __cdecl _Mtx_trylock (_Mtx_t)
 
_CRTIMP2_PURE int __cdecl _Mtx_timedlock (_Mtx_t, const xtime *)
 
_CRTIMP2_PURE int __cdecl _Mtx_unlock (_Mtx_t)
 
_CRTIMP2_PURE void *__cdecl _Mtx_getconcrtcs (_Mtx_t)
 
_CRTIMP2_PURE void __cdecl _Mtx_clear_owner (_Mtx_t)
 
_CRTIMP2_PURE void __cdecl _Mtx_reset_owner (_Mtx_t)
 
void __cdecl _Smtx_lock_exclusive (_Smtx_t *)
 
void __cdecl _Smtx_lock_shared (_Smtx_t *)
 
int __cdecl _Smtx_try_lock_exclusive (_Smtx_t *)
 
int __cdecl _Smtx_try_lock_shared (_Smtx_t *)
 
void __cdecl _Smtx_unlock_exclusive (_Smtx_t *)
 
void __cdecl _Smtx_unlock_shared (_Smtx_t *)
 
_CRTIMP2_PURE int __cdecl _Cnd_init (_Cnd_t *)
 
_CRTIMP2_PURE void __cdecl _Cnd_destroy (_Cnd_t)
 
_CRTIMP2_PURE void __cdecl _Cnd_init_in_situ (_Cnd_t)
 
_CRTIMP2_PURE void __cdecl _Cnd_destroy_in_situ (_Cnd_t)
 
_CRTIMP2_PURE int __cdecl _Cnd_wait (_Cnd_t, _Mtx_t)
 
_CRTIMP2_PURE int __cdecl _Cnd_timedwait (_Cnd_t, _Mtx_t, const xtime *)
 
_CRTIMP2_PURE int __cdecl _Cnd_broadcast (_Cnd_t)
 
_CRTIMP2_PURE int __cdecl _Cnd_signal (_Cnd_t)
 
_CRTIMP2_PURE void __cdecl _Cnd_register_at_thread_exit (_Cnd_t, _Mtx_t, int *)
 
_CRTIMP2_PURE void __cdecl _Cnd_unregister_at_thread_exit (_Mtx_t)
 
_CRTIMP2_PURE void __cdecl _Cnd_do_broadcast_at_thread_exit (void)
 
_CRTIMP2_PURE int __cdecl _Tss_create (_Tss_t *, _Tss_dtor_t)
 
_CRTIMP2_PURE int __cdecl _Tss_delete (_Tss_t)
 
_CRTIMP2_PURE int __cdecl _Tss_set (_Tss_t, void *)
 
_CRTIMP2_PURE void *__cdecl _Tss_get (_Tss_t)
 
_CRTIMP2_PURE void __cdecl _Thrd_abort (const char *)
 

Macro Definition Documentation

#define _THR_XTHREADS_H
#define _TSS_DTOR_ITERATIONS   _TSS_DTOR_ITERATIONS_IMP

Typedef Documentation

typedef _Cnd_imp_t _Cnd_t
typedef _Mtx_imp_t _Mtx_t
typedef void* _Smtx_t
typedef int(* _Thrd_start_t) (void *)
typedef void(* _Tss_dtor_t) (void *)
typedef _Tss_imp_t _Tss_t

Enumeration Type Documentation

anonymous enum
Enumerator
_Thrd_success 
_Thrd_nomem 
_Thrd_timedout 
_Thrd_busy 
_Thrd_error 
16  { /* return codes */
20  _Thrd_busy,
22  };
Definition: xthreads.h:19
Definition: xthreads.h:18
Definition: xthreads.h:20
Definition: xthreads.h:21
Definition: xthreads.h:17
anonymous enum
Enumerator
_Mtx_plain 
_Mtx_try 
_Mtx_timed 
_Mtx_recursive 
42  { /* mutex types */
43  _Mtx_plain = 0x01,
44  _Mtx_try = 0x02,
45  _Mtx_timed = 0x04,
46  _Mtx_recursive = 0x100
47  };
Definition: xthreads.h:44
Definition: xthreads.h:43
Definition: xthreads.h:46
Definition: xthreads.h:45

Function Documentation

_CRTIMP2_PURE int __cdecl _Cnd_broadcast ( _Cnd_t  )
_CRTIMP2_PURE void __cdecl _Cnd_destroy ( _Cnd_t  )
_CRTIMP2_PURE void __cdecl _Cnd_destroy_in_situ ( _Cnd_t  )
_CRTIMP2_PURE void __cdecl _Cnd_do_broadcast_at_thread_exit ( void  )
_CRTIMP2_PURE int __cdecl _Cnd_init ( _Cnd_t )
_CRTIMP2_PURE void __cdecl _Cnd_init_in_situ ( _Cnd_t  )
_CRTIMP2_PURE void __cdecl _Cnd_register_at_thread_exit ( _Cnd_t  ,
_Mtx_t  ,
int *   
)
_CRTIMP2_PURE int __cdecl _Cnd_signal ( _Cnd_t  )
_CRTIMP2_PURE int __cdecl _Cnd_timedwait ( _Cnd_t  ,
_Mtx_t  ,
const xtime  
)
_CRTIMP2_PURE void __cdecl _Cnd_unregister_at_thread_exit ( _Mtx_t  )
_CRTIMP2_PURE int __cdecl _Cnd_wait ( _Cnd_t  ,
_Mtx_t   
)
_CRTIMP2_PURE void __cdecl _Mtx_clear_owner ( _Mtx_t  )
_CRTIMP2_PURE int __cdecl _Mtx_current_owns ( _Mtx_t  )
_CRTIMP2_PURE void __cdecl _Mtx_destroy ( _Mtx_t  )
_CRTIMP2_PURE void __cdecl _Mtx_destroy_in_situ ( _Mtx_t  )
_CRTIMP2_PURE void* __cdecl _Mtx_getconcrtcs ( _Mtx_t  )
_CRTIMP2_PURE int __cdecl _Mtx_init ( _Mtx_t ,
int   
)
_CRTIMP2_PURE void __cdecl _Mtx_init_in_situ ( _Mtx_t  ,
int   
)
_CRTIMP2_PURE int __cdecl _Mtx_lock ( _Mtx_t  )
_CRTIMP2_PURE void __cdecl _Mtx_reset_owner ( _Mtx_t  )
_CRTIMP2_PURE int __cdecl _Mtx_timedlock ( _Mtx_t  ,
const xtime  
)
_CRTIMP2_PURE int __cdecl _Mtx_trylock ( _Mtx_t  )
_CRTIMP2_PURE int __cdecl _Mtx_unlock ( _Mtx_t  )
void __cdecl _Smtx_lock_exclusive ( _Smtx_t )
void __cdecl _Smtx_lock_shared ( _Smtx_t )
int __cdecl _Smtx_try_lock_exclusive ( _Smtx_t )
int __cdecl _Smtx_try_lock_shared ( _Smtx_t )
void __cdecl _Smtx_unlock_exclusive ( _Smtx_t )
void __cdecl _Smtx_unlock_shared ( _Smtx_t )
_CRTIMP2_PURE void __cdecl _Thrd_abort ( const char *  )
_CRTIMP2_PURE int __cdecl _Thrd_create ( _Thrd_t ,
_Thrd_start_t  ,
void  
)
_CRTIMP2_PURE _Thrd_t __cdecl _Thrd_current ( void  )
_CRTIMP2_PURE int __cdecl _Thrd_detach ( _Thrd_t  )
_CRTIMP2_PURE int __cdecl _Thrd_equal ( _Thrd_t  ,
_Thrd_t   
)
_CRTIMP2_PURE void __cdecl _Thrd_exit ( int  )
_CRTIMP2_PURE unsigned int __cdecl _Thrd_hardware_concurrency ( void  )
_CRTIMP2_PURE _Thrd_id_t __cdecl _Thrd_id ( void  )
_CRTIMP2_PURE int __cdecl _Thrd_join ( _Thrd_t  ,
int *   
)
_CRTIMP2_PURE void __cdecl _Thrd_sleep ( const xtime )
_CRTIMP2_PURE void __cdecl _Thrd_yield ( void  )
_CRTIMP2_PURE int __cdecl _Tss_create ( _Tss_t ,
_Tss_dtor_t   
)
_CRTIMP2_PURE int __cdecl _Tss_delete ( _Tss_t  )
_CRTIMP2_PURE void* __cdecl _Tss_get ( _Tss_t  )
_CRTIMP2_PURE int __cdecl _Tss_set ( _Tss_t  ,
void  
)