First big PITA in reallife D project
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Tue Oct 19 10:17:37 PDT 2010
On 10/19/10 11:07 CDT, FeepingCreature wrote:
> On 19.10.2010 13:33, Stephan wrote:
>> BUT it wont work like that. AFTER i stopped all other threads some
>> strange behavior of druntime makes every creation of an
>> InternetAddress instance (internally trying to resolve host)
>> impossible (throws an exception). Additionally even if the Internet
>> Addresses were created upfront the TcpSockets wont connect but
>> throw.
>
> Terminating threads has always been iffy in D.
Terminating threads has always been iffy in all languages that use
native threads. I've discussed with Sean a couple of times about ways to
define a little protocol and API for orderly thread termination. We need
something like a callback mechanism - atShutdown().
Andrei
More information about the Digitalmars-d
mailing list