Search Interrupt
Posted: 05 Aug 2005, 08:12
Hi,
I have seen the previous post about search interruption..
But I am really struggling with how to make the check_for_input() function. I have tried various ways of using (cin) but it is too slow, or stops. Last night, Pradu told me about PeekNamedPipe(), but I don't really understand it, even after reviewing Microsofts website.
None of my books have any of these techniques, either
Can anyone help? This is the last piece of functionality I need to add (having finally managed to sort fen string parsing )
Thanks,
Richard
I have seen the previous post about search interruption..
- Code: Select all
if(check_for_input()) {
handle_input_if_possible();
if_user_ask_for_abort() {
abort = 1;
return 0;
}
}
But I am really struggling with how to make the check_for_input() function. I have tried various ways of using (cin) but it is too slow, or stops. Last night, Pradu told me about PeekNamedPipe(), but I don't really understand it, even after reviewing Microsofts website.
None of my books have any of these techniques, either
Can anyone help? This is the last piece of functionality I need to add (having finally managed to sort fen string parsing )
Thanks,
Richard