
...
However, the C Standard, 6.2.4 paragraphs 4 and 5 5 [ISO/IEC 9899:20112024], states:
The result of attempting to indirectly access an object with thread storage duration from a thread other than the one with which the object is associated is implementation-defined. . . .
The result of attempting to indirectly access an object with automatic storage duration from a thread other than the one with which the object is associated is implementation-defined.
...
Bibliography
[ISO/IEC 9899:20112024] | 6.2.4, "Storage Durations of Objects" |
[OpenMP] | The OpenMP® API Specification for Parallel Programming |
...