Changeset 7:a3d84407fb9a in xplcommon for src/xplcommon/WaitableEvent.h


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

Added the public interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/xplcommon/WaitableEvent.h

    r4 r7  
    3030#ifndef XPLCOMMON_WAITABLEEVENT_H
    3131#define XPLCOMMON_WAITABLEEVENT_H
     32//------------------------------------------------------------------------------
     33
     34// The public interface of the WaitableEvent class common to all platforms
     35#if 0
     36
     37//------------------------------------------------------------------------------
     38
     39namespace xplcommon {
     40
     41//------------------------------------------------------------------------------
     42
     43/**
     44 * An event on which one can wait with a waiter.
     45 */
     46class WaitableEvent : public Waitable
     47{
     48public:
     49    /**
     50     * Construct the event.
     51     */
     52    WaitableEvent(Waiter* waiter = 0);
     53
     54    /**
     55     * Destroy the event.
     56     */
     57    virtual ~WaitableEvent();
     58
     59    /**
     60     * Fire the event.
     61     */
     62    void fire();
     63
     64    /**
     65     * Check if the event is fired or not. If so, the fired status
     66     * will be cleared.
     67     */
     68    bool check();
     69};
     70
     71//------------------------------------------------------------------------------
     72
     73} /* namespace xplcommon */
     74
     75//------------------------------------------------------------------------------
     76
     77#endif // 0, // The public interface of the WaitableEvent class common to all platforms
     78
    3279//------------------------------------------------------------------------------
    3380
Note: See TracChangeset for help on using the changeset viewer.