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

Semaphore interface definition. More...

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_ms, 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 Micro C API 2.4.14.2 Copyright © Mon May 20 2024 Real-Time Innovations, Inc