On 12/08/2017 04:23 AM, Guillaume Piolat wrote:

>> Every D api call must call thread_attachThis

> I advise to make a RAII struct you will put in any accessible callback, which deals with this

Of course. :) That's how I've been trying to use.

> IMHO thread_detachThis *must* be called at entry-point exit.
> Detach these threads at scope(exit), and avoid sorrow and call stacks
> with pthread_kill inside.

Agreed. My troubles turned out to be due to a druntime bug, which I think I've managed to fix:

  https://issues.dlang.org/show_bug.cgi?id=18063

Ali

Reply via email to