This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
interrupting std::getline
- From: manustone <rocciemanuele at hotmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 8 Dec 2008 06:06:55 -0800 (PST)
- Subject: interrupting std::getline
Hi all
I would like to stop executing the
std::getline( std::cin, aString )
function from another thread
when getline is blocked waiting for user input.
A possible solution is to put the function into another thread
and stop this last when I need.
Instead of using another thread, is there some global
function or OS function that is possible to call?
I imagine since std::cin should be running in a OS
thread, right?...maybe some signal?
Thanks for your help
ManuStone
--
View this message in context: http://www.nabble.com/interrupting-std%3A%3Agetline-tp20895956p20895956.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.