Changeset 2755 for trunk/synergy/lib/platform/CPMEventQueueBuffer.cpp
- Timestamp:
- Jul 31, 2006, 5:21:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/synergy/lib/platform/CPMEventQueueBuffer.cpp
r2752 r2755 3 3 * Copyright (C) 2004 Chris Schoeneman 4 4 * Copyright (C) 2006 Knut St. Osmundsen 5 * 5 * 6 6 * This package is free software; you can redistribute it and/or 7 7 * modify it under the terms of the GNU General Public License 8 8 * found in the file COPYING that should have accompanied this file. 9 * 9 * 10 10 * This package is distributed in the hope that it will be useful, 11 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of … … 59 59 CPMEventQueueBuffer::waitForEvent(double timeout) 60 60 { 61 // check if messages are available first. 61 // check if messages are available first. 62 62 ULONG fStatus = WinQueryQueueStatus(HWND_DESKTOP); 63 63 if (!fStatus) { 64 64 // convert timeout and wait. 65 ULONG ulPMTimeout = timeout < 0.0 65 ULONG ulPMTimeout = timeout < 0.0 66 66 ? SEM_INDEFINITE_WAIT 67 67 : (ULONG)(1000.0 * timeout); … … 85 85 return kSystem; 86 86 } 87 87 88 88 if (m_event.msg == m_userEvent) { 89 89 dataID = (UInt32)(uintptr_t)m_event.mp1; 90 90 return kUser; 91 91 } 92 92 93 93 event = CEvent(CEvent::kSystem, IEventQueue::getSystemTarget(), &m_event); 94 94 return kSystem; … … 105 105 { 106 106 ULONG fStatus = WinQueryQueueStatus(HWND_DESKTOP); 107 return fStatus != 0; 107 return fStatus != 0; 108 108 } 109 109 … … 120 120 } 121 121 122 /* 123 * Local Variables: 124 * mode: c 125 * c-file-style: "k&r" 126 * c-basic-offset: 4 127 * tab-width: 4 128 * indent-tabs-mode: t 129 * End: 130 */ 131
Note:
See TracChangeset
for help on using the changeset viewer.