esp-idf/components/pthread
Angus Gratton 6713291dad pthread: Fix behaviour when pthread destructor calls pthread_getspecific/pthread_setspecific
Update as per specification at https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_key_create.html

Specifically:

- Before a destructor is called then the value for the corresponding key is
  already set to NULL.

- If a destructor calls pthread_setspecific() to assign a non-NULL value then
  this destructor is called again, after all existing non-NULL values have been
  called.

Adds a test for this relatively complex behaviour.

Closes https://github.com/espressif/esp-idf/issues/6643
2021-05-18 10:21:34 +10:00
..
include
test pthread: Fix behaviour when pthread destructor calls pthread_getspecific/pthread_setspecific 2021-05-18 10:21:34 +10:00
CMakeLists.txt
Kconfig
component.mk
pthread.c
pthread_cond_var.c
pthread_internal.h
pthread_local_storage.c pthread: Fix behaviour when pthread destructor calls pthread_getspecific/pthread_setspecific 2021-05-18 10:21:34 +10:00
sdkconfig.rename