[Issue 2439] static ~this() cannot be used to shutdown threads
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 2 14:18:12 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2439
sean at invisibleduck.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Comment #1 from sean at invisibleduck.org 2008-11-02 16:18 -------
It's not unlikely that a thread may depend on static data, so by moving
thread_joinAll() until after the module dtors are called we would be pulling
the rug out from under these threads. Instead, I suggest making threads that
interact with the module shutdown process into daemon threads by using the
"isDaemon" property. These threads are ignored during thread_joinAll() and,
left alone, will run until the process ends.
--
More information about the Digitalmars-d-bugs
mailing list