Author: Andrew Williams
Date: 10:01:07 06/24/03
Go up one level in this thread
On June 24, 2003 at 12:36:46, Russell Reagan wrote: >On June 24, 2003 at 12:12:52, Andrew Williams wrote: > >>Funny you should ask, Omid. PostModernist is currently a Linux-only engine. That >>situation would change any minute, if I could just work out one small problem >>with PeekNamedPipe(..) on Windows. At the moment it can play under WinBoard if I >>make frequent use of <Move Now>. It either seems to spend all its time thinking >>that there is input available, or it ignores all input altogether... > >Maybe you could expand on the problem you're having with PeekNamedPipe? Have you >tried the other alternatives to PeekNamedPipe? Such as >GetNumberOfConsoleInputEvents, WaitForSingleObject, cin.rdbuf()->in_avail()? Or >how about starting a seperate thread for input, or for your search? Thanks for these suggestions, Russell. I've tried to explain the problem over in the WinBoard forum: http://www.f11.parsimony.net/forum16635/messages/50198.htm I'm loath to go with the threaded option, as I'm trying to change the minimum possible while doing the translation from Linux to Windows. As far as I can tell, I have equivalent-ish functions for everything my interface does now: --------------------------------- Linux Windows --------------------------------- read() ==> _read() write() ==> _write() select() ~~> PeekNamedPipe() --------------------------------- Unfortunately, that ~~> is less like the ==> than I had suspected! AW
This page took 0.01 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.