Changeset 14:3caa1d3122db in xplcommon for src/xplcommon/posix/Waitable.h
- Timestamp:
- 12/29/12 10:03:12 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/Waitable.h
r11 r14 32 32 //------------------------------------------------------------------------------ 33 33 34 #include "../Failable.h" 35 36 #include <cerrno> 37 38 //------------------------------------------------------------------------------ 39 34 40 namespace xplcommon { namespace posix { 35 41 … … 45 51 * It is basically a file descriptor. 46 52 */ 47 class Waitable 53 class Waitable : public Failable 48 54 { 49 55 public: … … 118 124 virtual void handleEvents(short events) = 0; 119 125 126 /** 127 * Set the error code from errno. 128 */ 129 void setErrorCodeFromErrno(); 130 120 131 friend class Waiter; 121 132 }; … … 146 157 //------------------------------------------------------------------------------ 147 158 159 inline void Waitable::setErrorCodeFromErrno() 160 { 161 setErrorCode(errno); 162 } 163 164 //------------------------------------------------------------------------------ 165 148 166 } /* namespace xplcommon::posix */ } /* namespace xplcommon */ 149 167
Note:
See TracChangeset
for help on using the changeset viewer.