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

Semaphore interface definition. More...

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

Go to the source code of this file.

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. More...
 

Functions

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

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 Version 2.4.6 Copyright © Mon Jan 25 2016 Real-Time Innovations, Inc