I am looking at using pthreads, and cancelling them - on z/OS
I see there are two functions which look the same.
- pthread_setcancelstate() - Set a thread cancelability state format (needs #define _OPEN_THREADS 2) and
- pthread_setintr() - Set a thread cancelability state (needs#define _OPEN_THREADS).
However the pthread_setintr says Usage notes: 1. If you are writing to the Single UNIX Specification, Version 3 standard, use pthread_setcancelstate() in place of pthread_setintr()
Which should I use? I could not find any doc which gives pros and cons as to what define options are the best to use.
I can see a variable __SUSV3_THR in the pthread.h header file.
Is there a strategic path I should be taking?
I am doing this as part of an external Python external function.
Colin Paice
------------------------------
Colin Paice
------------------------------