Changeset 21:eb59943050c9 in xplcommon for src/xplcommon/win32/Event.cc
- Timestamp:
- 12/31/12 14:17:32 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/win32/Event.cc
r20 r21 40 40 //------------------------------------------------------------------------------ 41 41 42 bool Event::isFired() const 43 { 44 DWORD result = WaitForSingleObject(handle, (waiter==0) ? INFINITE : 0); 45 if (result==WAIT_FAILED) { 46 eventFailable.setErrorCode(GetLastError()); 47 return false; 48 } else if (result==WAIT_OBJECT_0) { 49 return true; 50 } else { 51 return false; 52 } 53 } 54 55 //------------------------------------------------------------------------------ 56 42 57 void Event::addTo(Waiter& w) 43 58 {
Note:
See TracChangeset
for help on using the changeset viewer.