RTI Connext DDS Micro C API  Version 3.0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
osapi_semaphore.h File Reference

Semaphore interface definition. More...

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

Macros

#define OSAPI_SEMAPHORE_TIMEOUT_INFINITE   -1
#define OSAPI_SEMAPHORE_RESULT_OK   0
#define OSAPI_SEMAPHORE_RESULT_TIMEOUT   1
#define OSAPI_SEMAPHORE_RESULT_ERROR   2

Typedefs

typedef struct OSAPI_Semaphore OSAPI_Semaphore_T
 Abstract semaphore object.

Functions

OSAPI_Semaphore_TOSAPI_Semaphore_new (void)
 Create a semaphore.
RTI_BOOL OSAPI_Semaphore_delete (OSAPI_Semaphore_T *self)
 Delete a semaphore.
RTI_BOOL OSAPI_Semaphore_take (OSAPI_Semaphore_T *self, RTI_INT32 timeout, RTI_INT32 *fail_reason)
 Take a semaphore.
RTI_BOOL OSAPI_Semaphore_give (OSAPI_Semaphore_T *self)
 Give a semaphore.

Detailed Description

Semaphore interface definition.


Macro Definition Documentation

#define OSAPI_SEMAPHORE_TIMEOUT_INFINITE   -1

Infinite timeout

#define OSAPI_SEMAPHORE_RESULT_OK   0

Semaphore ok

#define OSAPI_SEMAPHORE_RESULT_TIMEOUT   1

Semaphore timed out

#define OSAPI_SEMAPHORE_RESULT_ERROR   2

Semaphore error


RTI Connext DDS Micro C API Version 3.0.1 Copyright © Thu Oct 24 2019 Real-Time Innovations, Inc