SysSemaphores.cpp File Reference

#include <SysThread.h>
#include <CmnErrors.h>
#include <ErrorMgr.h>
#include <libpalmroot.h>
#include <support/Errors.h>
#include <pthread.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Functions

status_t SysFastSemaphoreDestroy (SysFastSemaphoreType *semaphore)
status_t SysFastSemaphoreInit (uint32_t initialCount, uint32_t maxCount, uint32_t flags, SysFastSemaphoreType *outSemaphore)
status_t SysFastSemaphoreInitEZ (uint32_t initialCount, SysFastSemaphoreType *outSemaphore)
status_t SysFastSemaphoreSignal (SysFastSemaphoreType *semaphore)
status_t SysFastSemaphoreSignalCount (SysFastSemaphoreType *semaphore, uint32_t count)
status_t SysFastSemaphoreWait (SysFastSemaphoreType *semaphore, timeoutFlags_t iTimeoutFlags, nsecs_t iTimeout)
status_t SysFastSemaphoreWaitCount (SysFastSemaphoreType *semaphore, timeoutFlags_t iTimeoutFlags, nsecs_t iTimeout, uint32_t count)
status_t SysSemaphoreCreate (uint32_t initialCount, uint32_t maxCount, uint32_t flags, SysHandle *outSemaphore)
status_t SysSemaphoreCreateEZ (uint32_t initialCount, SysHandle *outSemaphore)
status_t SysSemaphoreDestroy (SysHandle semaphore)
status_t SysSemaphoreSignal (SysHandle semaphore)
status_t SysSemaphoreSignalCount (SysHandle semaphore, uint32_t count)
status_t SysSemaphoreWait (SysHandle semaphore, timeoutFlags_t iTimeoutFlags, nsecs_t iTimeout)


Function Documentation

status_t SysFastSemaphoreDestroy SysFastSemaphoreType *  semaphore  ) 
 

status_t SysFastSemaphoreInit uint32_t  initialCount,
uint32_t  maxCount,
uint32_t  flags,
SysFastSemaphoreType *  outSemaphore
 

status_t SysFastSemaphoreInitEZ uint32_t  initialCount,
SysFastSemaphoreType *  outSemaphore
 

status_t SysFastSemaphoreSignal SysFastSemaphoreType *  semaphore  ) 
 

status_t SysFastSemaphoreSignalCount SysFastSemaphoreType *  semaphore,
uint32_t  count
 

status_t SysFastSemaphoreWait SysFastSemaphoreType *  semaphore,
timeoutFlags_t  iTimeoutFlags,
nsecs_t  iTimeout
 

status_t SysFastSemaphoreWaitCount SysFastSemaphoreType *  semaphore,
timeoutFlags_t  iTimeoutFlags,
nsecs_t  iTimeout,
uint32_t  count
 

status_t SysSemaphoreCreate uint32_t  initialCount,
uint32_t  maxCount,
uint32_t  flags,
SysHandle outSemaphore
 

status_t SysSemaphoreCreateEZ uint32_t  initialCount,
SysHandle outSemaphore
 

status_t SysSemaphoreDestroy SysHandle  semaphore  ) 
 

status_t SysSemaphoreSignal SysHandle  semaphore  ) 
 

status_t SysSemaphoreSignalCount SysHandle  semaphore,
uint32_t  count
 

status_t SysSemaphoreWait SysHandle  semaphore,
timeoutFlags_t  iTimeoutFlags,
nsecs_t  iTimeout