Functions | |
| POSEXTERN POSMUTEX_t POSCALL | posMutexCreate (void) |
| POSEXTERN void POSCALL | posMutexDestroy (POSMUTEX_t mutex) |
| POSEXTERN VAR_t POSCALL | posMutexTryLock (POSMUTEX_t mutex) |
| POSEXTERN VAR_t POSCALL | posMutexLock (POSMUTEX_t mutex) |
| POSEXTERN VAR_t POSCALL | posMutexUnlock (POSMUTEX_t mutex) |
| POSEXTERN POSMUTEX_t POSCALL posMutexCreate | ( | void | ) |
Mutex function. Allocates a new mutex object.
| POSEXTERN void POSCALL posMutexDestroy | ( | POSMUTEX_t | mutex | ) |
Mutex function. Frees a no more needed mutex object.
| mutex | handle to the mutex object. |
| POSEXTERN VAR_t POSCALL posMutexLock | ( | POSMUTEX_t | mutex | ) |
Mutex function. This function locks a code section so that only one task can execute the code at a time. If an other task already has the lock, the task requesting the lock will be blocked until the mutex is unlocked again. Note that a posMutexLock appears always in a pair with posMutexUnlock.
| mutex | handle to the mutex object. |
| POSEXTERN VAR_t POSCALL posMutexTryLock | ( | POSMUTEX_t | mutex | ) |
Mutex function. Tries to get the mutex lock. This function does not block when the mutex is not available, instead it returns a value showing that the mutex could not be locked.
| mutex | handle to the mutex object. |
| POSEXTERN VAR_t POSCALL posMutexUnlock | ( | POSMUTEX_t | mutex | ) |
Mutex function. This function unlocks a section of code so that other tasks are able to execute it.
| mutex | handle to the mutex object. |
1.5.4