Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: multi-file polling on Windows (OT)

Author: Russell Reagan

Date: 07:22:36 04/07/04

Go up one level in this thread


On April 07, 2004 at 06:04:18, Fabien Letouzey wrote:

>
>Hello,
>
>How does one poll several files (of any type) at the same time,
>without multithreading?  In other words, how to simulate the behaviour
>of POSIX select()?
>
>Note that this is for an adapter, not an engine.  Engines need to poll
>only from stdin, which is a much simpler problem.
>
>I get the idea that using threads is the recommended way for Windows,
>but is there any other?
>
>Fabien.

I haven't used this in a while, but you might be able to do this with
WaitForMultipleObjects().



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.