Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: Sabotaging yourself: Closing a handle and then using it

$
0
0

Neil: Waiting on it isn't to check whether it's uninitialized; it's to protect the critical section in the cleanup code.

The ReleaseMutex is what's unnecessary -- in fact, I'd call it a bug. You want the second thread to fail, not get the mutex.


Viewing all articles
Browse latest Browse all 24428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>