Ignore:
Timestamp:
12/29/12 08:01:50 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Clarified the blocking and non-blocking behaviour and extended the test program to test both

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/posix/WaitableEvent.h

    r6 r8  
    3434#include "Waitable.h"
    3535
     36#include "../Failable.h"
     37
    3638//------------------------------------------------------------------------------
    3739
     
    4345 * An event on which one can wait with a waiter.
    4446 */
    45 class WaitableEvent : public Waitable
     47class WaitableEvent : public Waitable, public Failable
    4648{
    4749private:
     
    8385     */
    8486    virtual void handleEvents(short events);
     87
     88private:
     89    /**
     90     * Perform the real check. If we already know that we are fired,
     91     * just return true. Otherwise try to read from the event fd.
     92     */
     93    bool doCheck(bool fromHandleEvents = false);
    8594};
    8695
Note: See TracChangeset for help on using the changeset viewer.