Menu

How to realize WaitForMultipleObjects

2000-05-18
2001-05-16
  • Sascha Busse

    Sascha Busse - 2000-05-18

    I need to wait until at least one of 3 events has happened. Formerly under Win32 I used WaitForMultipleObjects.

    How can I rebuild a like that behaviour wiht CCXX methods?
    Any suggestions?

     
    • David Sugar

      David Sugar - 2000-05-23

      Posix does not directly define a method for performing this exact
      kind of function against different entities, and hence there is no cleanly portable
      way to represent this concept (or Unix "select") between Win32 and Unix that I have found.

      Generally, one can produce a triggered event that is itself dependent on and able to signal based on other actions, and then use this single trigger point to achieve
      the same result.  It may not be as clean as a single method call, but it is workable.

       
    • David J. Liszewski

      Have you looked inside the Adaptive Communication Environment (ACE)?  In section 3.4 of doc. linked below, there's a discussion of what happens when one attempts to fit both poll/select and WaitForMultipleObject under the same wrapper class.

      see http://www.cs.wustl.edu/~schmidt/PDF/ECOOP-95.pdf

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.