|
FreeRTOS:
Platform
Platform portability layer
|
| Return to main page ↑ |
Create a new mutex.
This function creates a new, unlocked mutex. It must be called on an uninitialized IotMutex_t. This function must not be called on an already-initialized IotMutex_t.
| [in] | pNewMutex | Pointer to the memory that will hold the new mutex. |
| [in] | recursive | Set to true to create a recursive mutex, i.e. a mutex that may be locked multiple times by the same thread. If the system does not support recursive mutexes, this function should do nothing and return false. |
true if mutex creation succeeds; false otherwise.Example