[Issue 17957] D shared library throws asserts when called from C detached pthread but not terminated with dlclose
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 2 14:10:55 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17957
ponce <aliloko at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aliloko at gmail.com
--- Comment #1 from ponce <aliloko at gmail.com> ---
A major problem I see is that you use pthread_detach which you are not supposed
to.
People are talking about "attachment" in the context of the D runtime which
maintains a list of "attached" threads (thread_attachThis/thread_detachThis),
nothing to do with pthreads.
In your case, you don't want the runtime enabled so don't have to worry about
this attachment to the D runtime anyway.
--
More information about the Digitalmars-d-bugs
mailing list