esp-idf/components/pthread/test
Angus Gratton 564229c9a6 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-12-21 01:27:49 +00:00
..
CMakeLists.txt cmock: added cmock as component 2020-09-02 16:38:37 +08:00
component.mk 1) Mux API was added 2017-09-06 10:30:23 +08:00
test_cxx_cond_var.cpp pthread: Added support for pthread condition variables 2017-11-23 11:26:51 +08:00
test_cxx_std_future.cpp Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
test_pthread_cxx.cpp test: Fix possible race in pthread C++ test 2019-12-19 15:55:51 +11:00
test_pthread_local_storage.c pthread: Fix behaviour when pthread destructor calls pthread_getspecific/pthread_setspecific 2021-12-21 01:27:49 +00:00
test_pthread.c pthread tests : test case added for detach functionality 2018-12-28 14:41:24 +05:30