Loïc Grenié on Sat, 01 Jul 2023 13:35:30 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: How to interrupt a MT calculation?


On Sat 1 Jul 2023 aT 12:39, Bill Allombert wrote:
On Sat, Jul 01, 2023 at 01:04:49AM +0200, Jean-Luc Arnaud wrote:
> So, it seems like error does not work the same way on Linux (and probably
> Windows) versus Mac OS, or is there a bug in the 2.16.0 Alpha version?

No this is a limitation of pthread on macos:
<https://stackoverflow.com/questions/43109438/macos-macoss-pthread-pthread-cancel-asynchronous-not-working>

     Definitely not the recommended way, but could a SEGV help?

install("getpid","l")
extern(Str("kill -SEGV ", getpid()))

   (obviously, this should be run inside an iferr() as before, but I don't remember
  if iferr can catch a SIGSEGV).

         Loïc