Can you please tell what the value of PTHREAD_MUTEX_INITIALIZER is and where is it initialized?
I think its value is platform-dependent like in one case it can be initialized to some predefined value, like 0xFFFFFFFF, in another case it is a macro that is resolved to some kind of structure initialization values. And as a consequence, it isn't initialized anywhere, instead, it is an initializer by itself.
I'm wondering if there's such thing on WICED platform in general.
2 of 2 people found this helpful
The macro PTHREAD_MUTEX_INITIALIZER is used to initialize the mutex in a POSIX compatible system. In WICED, we have ThreadX and FreeRTOS Operating system. These RTOS do not have POSIX wrappers to determine the value of PTHREAD_MUTEX_INITIALIZER. You could include the POSIX wrappers for FreeRTOS in WICED and give it a try.
FYI: This link will be helpful FreeRTOS+POSIX
Thanks for the link, will check and give it a try.