Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Events in linux

Author: Hristo

Date: 23:01:15 04/24/01

Go up one level in this thread


On April 24, 2001 at 23:50:37, Robert Hyatt wrote:

>On April 24, 2001 at 22:50:41, Hristo wrote:
>
>>select(..) doesn't do it. ;-(((
>>wish it did!!!!
>>select(..) works within a different domain and in general
>>can not compare to WaitForMultipleObjects. ;-(
>>WaitForMultipleObjects is, kind of like, select(..) on steroids!
>>...
>>The unix style is to keep things simple, which pays off when there
>>is good design!
>>
>>hristo
>
>
>why can't you produce the same effect with a group of descriptors?  Writing
>to such a descriptor from the "other end" will set that condition so that
>select() will terminate...  IE it seems like a small kludge, but it would
>seem to allow the same sort of capability...???

How to make sure that all (ALL) descriptors are set before select returns.
Lets say I want select to return wtith either ALL-descriptors-set or
NO-descriptors-set? Perhaps it can be done!? For me it's easier to
think of this problem as a bunch of cond+mutex variables...
This is what MS can do to ya ... get people spoiled and lazy ...
and offers complicated solutions ... you use them and then you are stuck,
because one never takes the time to find the simple, elegant solution.

hristo




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.