in reply to Shutdown a thread that is using a blocking socket
Then instead of notifying the thread via a global variable, notify it by sending something to its socket or just close (or shutdown) its socket.
- tye