On 08.03.2023 02:30, David Crayford wrote:
On 8/3/23 02:26, Rony G. Flatscher wrote:
There also appears to be bugs in SysThread where the "attached" member variable is not
initialized in the constructor that takes a pthread_t argument.
Ah, interesting that this is regarded a stumbling block, how about pthread_getunique_np() or such
then?
Obviously, the "_np" suffix stands for "non-portable". It doesn't exist on z/OS! I happen to know
the internal structure of the opaque pthread_t structure on z/OS and to extract the thread ID (TCB
address) one would implement something like:
int gettid() { return (int)(pthread_self().__ & 0x7fffffff); }
Erich, a developer, has applied a fix that should make it possible to get over this on z/OS with an
elegant solution, here his respective comment:
Committed code fix with revision [r12649]
As reported by David Crayford, pthread_t is a struct on z/OS and setting or
casting it, fails
Good luck with your next attempt to compile ooRexx on z/OS and please let us
know how you fare!
:)
---rony
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN