Typedefs | |
| typedef struct NvOsSemaphoreRec * | NvOsSemaphoreHandle |
Functions | |
| NvError | NvOsSemaphoreClone (NvOsSemaphoreHandle orig, NvOsSemaphoreHandle *semaphore) |
| This function clones the semaphore. More... | |
| NvError | NvOsSemaphoreCreate (NvOsSemaphoreHandle *semaphore, NvU32 value) |
| This function creates a semaphore, and the number of wait operations, is initialized to the value parameter. More... | |
| NvError | NvOsSemaphoreDestroyEx (NvOsSemaphoreHandle semaphore) |
| This function destroys a semaphore. More... | |
| NvError | NvOsSemaphoreSignalEx (NvOsSemaphoreHandle semaphore) |
| This function increases the number of wait operation, to given semaphore. More... | |
| NvError | NvOsSemaphoreWaitEx (NvOsSemaphoreHandle semaphore) |
| This function waits a semaphore, and decrease the number of wait operations. Thread is blocked infinitely, if number of semaphore wait operations is 0. More... | |
| NvError | NvOsSemaphoreWaitTimeout (NvOsSemaphoreHandle semaphore, NvU32 msec) |
| This function waits a semaphore and decreases the number of wait operation. More... | |
| typedef struct NvOsSemaphoreRec* NvOsSemaphoreHandle |
Handle for NvOS semaphore. This is an opaque type and should not be dereferenced.
Definition at line 1245 of file nvos_s3_tegra_safety.h.
| NvError NvOsSemaphoreClone | ( | NvOsSemaphoreHandle | orig, |
| NvOsSemaphoreHandle * | semaphore | ||
| ) |
This function clones the semaphore.
| [in] | orig | Original semaphore |
| [out] | semaphore | Will be cloned from original semaphore |
Usage considerations
| NvError NvOsSemaphoreCreate | ( | NvOsSemaphoreHandle * | semaphore, |
| NvU32 | value | ||
| ) |
This function creates a semaphore, and the number of wait operations, is initialized to the value parameter.
| [out] | semaphore | Will be created |
| [in] | value | Passed to the value parameter of sem_init() |
Usage considerations
| NvError NvOsSemaphoreDestroyEx | ( | NvOsSemaphoreHandle | semaphore | ) |
This function destroys a semaphore.
| [in] | semaphore | Semaphore to be destroyed |
Usage considerations
| NvError NvOsSemaphoreSignalEx | ( | NvOsSemaphoreHandle | semaphore | ) |
This function increases the number of wait operation, to given semaphore.
| [in] | semaphore | To increase Semaphore's number of wait operations |
Usage considerations
| NvError NvOsSemaphoreWaitEx | ( | NvOsSemaphoreHandle | semaphore | ) |
This function waits a semaphore, and decrease the number of wait operations. Thread is blocked infinitely, if number of semaphore wait operations is 0.
| [in] | semaphore | Semaphore to wait |
Usage considerations
| NvError NvOsSemaphoreWaitTimeout | ( | NvOsSemaphoreHandle | semaphore, |
| NvU32 | msec | ||
| ) |
This function waits a semaphore and decreases the number of wait operation.
| [in] | semaphore | Semaphore to wait |
| [in] | msec | Waiting duration as millisecond |
Usage considerations