Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

Defines | Typedefs | Enumerations | Functions | Variables

thread.h File Reference

#include <iprt/cdefs.h>
#include <iprt/types.h>
#include <iprt/stdarg.h>
Include dependency graph for thread.h:

Go to the source code of this file.

Defines

#define RTTHREAD_IS_SLEEPING(enmState)   ((enmState) >= RTTHREADSTATE_CRITSECT)

Typedefs

typedef FNRTTHREAD * PFNRTTHREAD
typedef void * pvUser
typedef enum RTTHREADFLAGS RTTHREADFLAGS
typedef enum RTTHREADSTATE RTTHREADSTATE
typedef enum RTTHREADTYPE RTTHREADTYPE

Enumerations

enum  RTTHREADFLAGS { RTTHREADFLAGS_WAITABLE = RT_BIT(0), RTTHREADFLAGS_WAITABLE_BIT = 0, RTTHREADFLAGS_MASK = RT_BIT(0) }
enum  RTTHREADSTATE {
  RTTHREADSTATE_INVALID = 0, RTTHREADSTATE_INITIALIZING, RTTHREADSTATE_TERMINATED, RTTHREADSTATE_RUNNING,
  RTTHREADSTATE_CRITSECT, RTTHREADSTATE_EVENT, RTTHREADSTATE_EVENT_MULTI, RTTHREADSTATE_FAST_MUTEX,
  RTTHREADSTATE_MUTEX, RTTHREADSTATE_RW_READ, RTTHREADSTATE_RW_WRITE, RTTHREADSTATE_SLEEP,
  RTTHREADSTATE_SPIN_MUTEX, RTTHREADSTATE_32BIT_HACK = 0x7fffffff
}
enum  RTTHREADTYPE {
  RTTHREADTYPE_INVALID = 0, RTTHREADTYPE_INFREQUENT_POLLER, RTTHREADTYPE_MAIN_HEAVY_WORKER, RTTHREADTYPE_EMULATION,
  RTTHREADTYPE_DEFAULT, RTTHREADTYPE_GUI, RTTHREADTYPE_MAIN_WORKER, RTTHREADTYPE_VRDP_IO,
  RTTHREADTYPE_DEBUGGER, RTTHREADTYPE_MSG_PUMP, RTTHREADTYPE_IO, RTTHREADTYPE_TIMER,
  RTTHREADTYPE_END
}

Functions

typedef DECLCALLBACK (int) FNRTTHREAD(RTTHREAD ThreadSelf
 RTDECL (RTTHREADTYPE) RTThreadGetType(RTTHREAD Thread)
 RTDECL (const char *) RTThreadSelfName(void)
 RTDECL (RTNATIVETHREAD) RTThreadNativeSelf(void)
 RTDECL (bool) RTThreadYield(void)
 RTDECL (int) RTThreadSleep(RTMSINTERVAL cMillies)
 RTDECL (RTTHREAD) RTThreadSelf(void)

Variables

PFNRTTHREAD void size_t cbStack
RTMSINTERVAL cMillies
PFNRTTHREAD void size_t
RTTHREADTYPE 
enmType
PFNRTTHREAD void size_t
RTTHREADTYPE unsigned 
fFlags
PFNRTTHREAD pfnThread
RTMSINTERVAL int * prc
PFNRTTHREAD void size_t
RTTHREADTYPE unsigned const
char * 
pszName
PFNRTTHREAD void size_t
RTTHREADTYPE uint32_t const
char * 
pszNameFmt
PFNRTTHREAD void size_t
RTTHREADTYPE uint32_t const
char va_list 
va

Detailed Description

IPRT - Threads.

Definition in file thread.h.


Generated by  Doxygen 1.6.0   Back to index