Computer Chess Club Archives


Search

Terms

Messages

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

Author: Russell Reagan

Date: 08:11:37 04/07/04

Go up one level in this thread


On April 07, 2004 at 10:47:20, Fabien Letouzey wrote:

>The WaitForMultipleObjects function can specify handles of any of the following
>object types in the lpHandles array:
>
>    * Change notification
>    * Console input
>    * Event
>    * Job
>    * Memory resource notification
>    * Mutex
>    * Process
>    * Semaphore
>    * Thread
>    * Waitable timer
>
>---
>
>I am not familiar with the Windows terminology.
>Do you think pipes fit in this list?

CreateNamedPipe() returns a HANDLE, so I think it would work. Probably the only
way to know is to try it. You might also have a look at these functions:

http://msdn.microsoft.com/library/en-us/ipc/base/pipe_functions.asp

I guess you could create your own select() type function using PeekNamedPipe()
in a loop.



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.