Druntime and non-D threads
Ali Çehreli
acehreli at yahoo.com
Mon Dec 11 11:32:00 UTC 2017
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
More information about the Digitalmars-d
mailing list