RTI Connext DDS Micro  Version 2.4.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
osapi_thread.h File Reference

Thread interface definition. More...

#include "osapi/osapi_config.h"
#include "osapi/osapi_dll.h"
#include "osapi/osapi_types.h"

Go to the source code of this file.

Data Structures

struct  OSAPI_ThreadInfo
 Thread info. More...

Macros

#define OSAPI_THREAD_DEFAULT_OPTIONS   0x00
#define OSAPI_THREAD_FLOATING_POINT   0x01
#define OSAPI_THREAD_STDIO   0x02
#define OSAPI_THREAD_REALTIME_PRIORITY   0x08
#define OSAPI_THREAD_PRIORITY_ENFORCE   0x10
#define OSAPI_THREAD_CANCEL_ASYNCHRONOUS   0x20
#define OSAPI_THREAD_PROPERTY_DEFAULT

Typedefs

typedef RTI_UINT32 OSAPI_ThreadOptions
typedef RTI_BOOL(* OSAPI_ThreadRoutine )(struct OSAPI_ThreadInfo *thread_info)
 Thread task signature.

Functions

RTI_BOOL OSAPI_Thread_wakeup (struct OSAPI_Thread *self)
 Wakeup user-thread.
RTI_BOOL OSAPI_Thread_start (struct OSAPI_Thread *me)
 Start a specific thread.
RTI_BOOL OSAPI_Thread_destroy (struct OSAPI_Thread *self)
 Destroy a specific thread.
void OSAPI_Thread_sleep (RTI_UINT32 ms)
 Suspend a thread for a specified amount of time.
struct OSAPI_Thread * OSAPI_Thread_create (const char *name, const struct OSAPI_ThreadProperty *properties, OSAPI_ThreadRoutine user_routine, void *user_data, OSAPI_ThreadRoutine wakeup_routine)
 Create a thread.
OSAPI_ThreadId OSAPI_Thread_self (void)
 Return thread ID.

Detailed Description

Thread interface definition.


RTI Connext DDS Micro Version 2.4.10 Copyright © Fri Jun 30 2017 Real-Time Innovations, Inc