This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]