Typedefs | |
| typedef POSMUTEX_t | NOSMUTEX_t |
Functions | |
| NANOEXT NOSMUTEX_t POSCALL | nosMutexCreate (UVAR_t options, const char *name) |
| NANOEXT void POSCALL | nosMutexDestroy (NOSMUTEX_t mutex) |
| NANOEXT VAR_t POSCALL | nosMutexTryLock (NOSMUTEX_t mutex) |
| NANOEXT VAR_t POSCALL | nosMutexLock (NOSMUTEX_t mutex) |
| NANOEXT VAR_t POSCALL | nosMutexUnlock (NOSMUTEX_t mutex) |
| typedef POSMUTEX_t NOSMUTEX_t |
Handle to a nano layer semaphore object.
| NANOEXT NOSMUTEX_t POSCALL nosMutexCreate | ( | UVAR_t | options, | |
| const char * | name | |||
| ) |
Mutex function. Allocates a new mutex object.
| options | Currently unused. Please set this parameter to 0 (zero). | |
| name | Name of the new mutex object to create. If the last character in the name is an asteriks (*), the operating system automatically assigns the mutex a unique name (the registry feature must be enabled for this automatism). This parameter can be NULL if the nano layer registry feature is not used and will not be used in future. |
| NANOEXT void POSCALL nosMutexDestroy | ( | NOSMUTEX_t | mutex | ) |
Mutex function. Frees a no more needed mutex object.
| mutex | handle to the mutex object. |
| NANOEXT VAR_t POSCALL nosMutexLock | ( | NOSMUTEX_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 nosMutexLock appears always in a pair with nosMutexUnlock.
| mutex | handle to the mutex object. |
| NANOEXT VAR_t POSCALL nosMutexTryLock | ( | NOSMUTEX_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. |
| NANOEXT VAR_t POSCALL nosMutexUnlock | ( | NOSMUTEX_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