Hello,

how do I cancel or delete a Xenomai POSIX thread running in primary
context from a higher priority thread? IIUC, pthread_kill() can only be
used in secondary context. I tried pthread_cancel(), but it only works
when hitting a cancelation point, e.g. pthread_testcancel(). Setting
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS) did not help. Is
there a code snippet or even an example program showing how to cancel a
pthread in primary context?

TIA,

Wolfgang.


_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to