We discussed this with the C/C++ compiler devs when we were beta testing the Open XL C/C++ compiler. They said it was on their radar but would need work from the binder team to implement similar plumbing to writeable static. I got the impression that it won't happen soon. It's a PITA as it makes porting modern code a lot more difficult.

You can implement thread specific data the old way using the pthread library and wrapping in C++ code https://stackoverflow.com/a/12053862/2434779.

On 7/12/22 04:15, Peter Relson wrote:
To my limited understanding, there is not currently support for thread-local 
storage on z/OS.
An LE enclave does not correspond 1 to 1 to a thread.

I think that "writeable static", for example, is on an enclave basis, not a 
thread basis.

I'm sure others know this far better than I.

Peter Relson
z/OS Core Technology Design


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to