Changeset 21:eb59943050c9 in xplcommon for src/xplcommon/win32/Overlapped.h
- Timestamp:
- 12/31/12 14:17:32 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/win32/Overlapped.h
r20 r21 59 59 * 0, and the event handle will be set. 60 60 */ 61 Overlapped( );61 Overlapped(EventFailable& eventFailable); 62 62 63 63 /** … … 75 75 */ 76 76 const OVERLAPPED* get() const; 77 78 /** 79 * Get the result of the overlapped operation. 80 * 81 * If the operation has completed, the event will be cleared. 82 * 83 * @param size on successful return, it will contain the number of 84 * bytes read or written, which may be 0 for an end-of-file 85 * condition 86 * @param file the handle of the file on which the operation in 87 * question was performed 88 * 89 * @return true if the operation has completed, or false if it has 90 * not, or a failure has occured. 91 */ 92 bool getResult(DWORD& size, HANDLE file); 77 93 }; 78 94 … … 81 97 //------------------------------------------------------------------------------ 82 98 83 inline Overlapped::Overlapped() 99 inline Overlapped::Overlapped(EventFailable& eventFailable) : 100 Event(eventFailable) 84 101 { 85 102 reset();
Note:
See TracChangeset
for help on using the changeset viewer.