Abstract Semaphore API.  
More...
Detailed Description
Abstract Semaphore API. 
Typedef Documentation
Abstract semaphore object. 
 
 
Function Documentation
Create a semaphore. 
- Returns:
 - Pointer to a semaphore with a value of 1 on success, NULL on failure.
 
- See also:
 - OSAPI_Semaphore_delete 
 
 
 
Delete a semaphore. 
- Parameters:
 - 
  
  
 
- Returns:
 - RTI_TRUE on success, RTI_FALSE on failure.
 
- See also:
 - OSAPI_Semaphore_new 
 
 
 
      
        
          | RTI_BOOL OSAPI_Semaphore_take  | 
          ( | 
          OSAPI_Semaphore_T *  | 
          self,  | 
        
        
           | 
           | 
          RTI_INT32  | 
          timeout,  | 
        
        
           | 
           | 
          RTI_INT32 *  | 
          fail_reason  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Take a semaphore. 
- Parameters:
 - 
  
    | [in] | self | Semaphore previously created with OSAPI_Semaphore_new. | 
    | [in] | timeout | Timeout in ms. The take call will wait at most timeout ms before returning. If OSAPI_SEMAPHORE_TIMEOUT_INFINITE is specified, the call will not return until the semaphore has a value of 1 or higher. | 
    | [out] | fail_reason | This parameter is not used, but present for compatibility reasons. | 
  
   
- Returns:
 - RTI_TRUE on success, RTI_FALSE on failure.
 
- See also:
 - OSAPI_Semaphore_give 
 
 
 
Give a semaphore. 
- Parameters:
 - 
  
  
 
- Returns:
 - RTI_TRUE on success, RTI_FALSE on failure.
 
- See also:
 - OSAPI_Semaphore_take