[dmd-concurrency] Shutdown protocol
    Andrei Alexandrescu 
    andrei at erdani.com
       
    Thu Jan 21 09:10:08 PST 2010
    
    
  
Steve Schveighoffer wrote:
> ----- 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.
The actual process shutdowns next to instantly on all my computers. I 
can say I'm positive it does not use the method you are suggesting in 
your other message (readWithShutdown).
Andrei
    
    
More information about the dmd-concurrency
mailing list