On 7/12/22 10:53, Joseph Reichman wrote:
David Crayford suggested I use uss pthread wonder if that corresponds to z/os 
task

Of course! Although the POSIX semantics are different. pthreads are not hierarchical and the thread can be detached from the thread that spawned it. This is implemented on z/OS by spawning all threads on the IPT (initial pthread-creating task) which is the main enclave.

https://www.ibm.com/docs/en/zos/2.4.0?topic=reference-using-threads-callable-services



Going to try and research that

Thanks

On Dec 6, 2022, at 9:30 PM, David Crayford <[email protected]> wrote:

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
----------------------------------------------------------------------
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