esp_pthread_init constructor attr was removed

This commit is contained in:
Alexey Gerenkov 2017-09-05 20:37:31 +03:00 committed by Ivan Grokhotkov
parent 5094965e98
commit 5dea0fca15

View file

@ -69,7 +69,7 @@ static List_t s_threads_list;
static int IRAM_ATTR pthread_mutex_lock_internal(esp_pthread_mutex_t *mux, TickType_t tmo);
esp_err_t __attribute__((constructor)) esp_pthread_init(void)
esp_err_t esp_pthread_init(void)
{
vListInitialise((List_t *)&s_threads_list);
s_once_mux = xSemaphoreCreateMutex();