# TSS_DTOR_ITERATIONS

> C++ Atlas: `cppatlas.com/w/c/thread/TSS_DTOR_ITERATIONS` | Source: https://en.cppreference.com/w/c/thread/TSS_DTOR_ITERATIONS | Domain: Concurrency support | Standards: C11

Expands to a positive integral constant expression defining the maximum number of times a destructor for thread-local storage pointer will be called by thrd_exit.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <threads.h>
#define TSS_DTOR_ITERATIONS /* unspecified */ // (since C11)
```

Expands to a positive integral constant expression defining the maximum number of times a destructor for thread-local storage pointer will be called by `thrd_exit`.

This constant is equivalent to the POSIX `PTHREAD_DESTRUCTOR_ITERATIONS`.

### References

- C17 standard (ISO/IEC 9899:2018):

  - 7.26.1/3 TSS_DTOR_ITERATIONS (p: 274)

- C11 standard (ISO/IEC 9899:2011):

  - 7.26.1/3 TSS_DTOR_ITERATIONS (p: 376)

---
Attribution: content from https://en.cppreference.com/w/c/thread/TSS_DTOR_ITERATIONS (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.