mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-25 01:37:22 +00:00
pthread : Add support for attributes and few APIs
This introduces the following changes : * Implmentation added for pthread attribute related functions : * pthread_attr_init * pthread_attr_destroy * pthread_attr_setdetachstate * pthread_attr_getdetachstate * pthread_attr_getstacksize * pthread_attr_setstacksize * pthread_create now supports passing attributes/configs through pthread_attr_t structure * pthread_mutex_timedlock added * pthread_exit added * memory for joinable thread is freed before returning from pthread_join
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#define _POSIX_TIMEOUTS // For pthread_mutex_timedlock
|
||||
|
||||
#include_next <pthread.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user