Changeset 7:a3d84407fb9a in xplcommon for src/xplcommon/WaitableEvent.h
- Timestamp:
- 12/29/12 07:45:57 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/WaitableEvent.h
r4 r7 30 30 #ifndef XPLCOMMON_WAITABLEEVENT_H 31 31 #define XPLCOMMON_WAITABLEEVENT_H 32 //------------------------------------------------------------------------------ 33 34 // The public interface of the WaitableEvent class common to all platforms 35 #if 0 36 37 //------------------------------------------------------------------------------ 38 39 namespace xplcommon { 40 41 //------------------------------------------------------------------------------ 42 43 /** 44 * An event on which one can wait with a waiter. 45 */ 46 class WaitableEvent : public Waitable 47 { 48 public: 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 32 79 //------------------------------------------------------------------------------ 33 80
Note:
See TracChangeset
for help on using the changeset viewer.