[dmd-concurrency] Shutdown protocol

Steve Schveighoffer schveiguy at yahoo.com
Thu Jan 21 09:07:29 PST 2010


----- Original Message ----

> From: Andrei Alexandrescu <andrei at erdani.com>
> 
> "The function terminates any pending operations on the handle and discards any 
> outstanding data. If a thread is blocking a call to Wininet.dll, another thread 
> in the application can call InternetCloseHandle on the Internet handle being 
> used by the first thread to cancel the operation and unblock the first thread."
> 
> This is why you can close a browser instantly even though there may be a dozen 
> pages still waiting to load.

I disagree.  A browser "closing instantly" just means its UI is hidden.  Watch the process in Task Manager, it lingers for quite a few seconds.

-Steve



      


More information about the dmd-concurrency mailing list