M
Mr Dyl
I'm using Boost to run a couple of threads, one of which reads commands
via std::cin and another receives them through a socket. It's entirely
possible that during the life of the app, all commands will be sent
through the socket and the thread watching cin will never "see any
action". So the problem is, how do I terminate this thread that waits
for keyboard input?
Unfortunately, Boost::thread doesn't yet allow me to force the thread
to terminate. Even after I exit main(), the app doesn't die until
something is entered via cin. I'm trying to keep the code
cross-platform compatilible so I'd like to avoid any OS-specific
gobledigook.
Any ideas?
Thanks in advance!
via std::cin and another receives them through a socket. It's entirely
possible that during the life of the app, all commands will be sent
through the socket and the thread watching cin will never "see any
action". So the problem is, how do I terminate this thread that waits
for keyboard input?
Unfortunately, Boost::thread doesn't yet allow me to force the thread
to terminate. Even after I exit main(), the app doesn't die until
something is entered via cin. I'm trying to keep the code
cross-platform compatilible so I'd like to avoid any OS-specific
gobledigook.
Any ideas?
Thanks in advance!