Author: Chris Moreton
Date: 19:24:26 12/19/98
Go up one level in this thread
This was the last problem that I had to figure out and after some trial and
error and a peek at the Crafty source I am using the following code which just
detects if a message has been received and quits the search routine so that the
command can be read from the pipe in the main part of the program.
if (Pondering) {
DWORD dw;
static HANDLE inh = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(inh, &dw);
PeekNamedPipe(inh, NULL, 0, NULL, &dw, NULL);
if (dw!=NULL && dw>0) ExitWithMove();
}
Chris
On December 19, 1998 at 02:37:21, James Robertson wrote:
>I am trying to get my program to work with Winboard, but I can't figure out how
>to handle Winboard commands during stuff like searches, pondering, etc. How do
>most programs handle this? If you could add a little more info too, like instad
>of saying "with multiple threads", please say how the multiple threads work!!
>
>Thanks,
>James
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.