RTI Connext DDS Micro C++ API
Version 4.0.1
|
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_T * | OSAPI_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. |
Semaphore interface definition.
#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