Closed edbek closed 7 years ago
This is correct, it's mandatory for Lua RTOS pthread management.
After the creation of the new task related to new thread we need to wait for the initialization of critical information that is provided by new thread:
This is done by pthreadTask function, who releases the lock when this information is set.
We have document this in our last commit https://github.com/whitecatboard/Lua-RTOS-ESP32/commit/fb44da2fe2c93128eb833b042ccf13838a5ba4eb
Let me to close this issue. No feedback were provided.
mtx_lock() function occurs in two times in pthread_create(). So it should be?