esp-idf/components/newlib/pthread.c
Ivan Grokhotkov 843889fd03 pthread: add dummy implementation of pthread_setcancelstate
Used by new versions of newlib in stdio functions.
2020-11-04 10:08:00 +07:00

16 lines
320 B
C

#include <pthread.h>
#include "esp_log.h"
const static char *TAG = "esp32_asio_pthread";
int pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id)
{
ESP_LOGW(TAG, "%s: not yet supported!", __FUNCTION__);
return 0;
}
int pthread_setcancelstate(int state, int *oldstate)
{
return 0;
}