C++ console input blocks so i can't kill thread
问题 My program has many different threads handling different things, and one of them deals with user input. The other threads don't have much in the way of blocking calls, and those that do block are network based so will be interrupted or return gracefully when the socket is shut down. However the user thread has calls to std::cin in order to grab the user input. The effect this has is while all the other threads are dead the user thread is still blocking on user input, and will only die the