Changeset 6196 for trunk/src/wsock32/asyncthread.cpp
- Timestamp:
- Jul 7, 2001, 12:44:11 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/asyncthread.cpp
r5638 r6196 1 /* $Id: asyncthread.cpp,v 1. 9 2001-04-29 18:47:31 sandervlExp $ */1 /* $Id: asyncthread.cpp,v 1.10 2001-07-07 10:44:09 achimha Exp $ */ 2 2 3 3 /* … … 208 208 //****************************************************************************** 209 209 //****************************************************************************** 210 BOOL FindAndSetAsyncEvent(SOCKET s, HWND hwnd, int msg, ULONG lEvent)210 BOOL FindAndSetAsyncEvent(SOCKET s, int mode, int notifyHandle, int notifyData, ULONG lEventMask) 211 211 { 212 212 PASYNCTHREADPARM pThreadInfo; … … 215 215 pThreadInfo = FindAsyncEvent(s); 216 216 if(pThreadInfo) { 217 pThreadInfo->u.asyncselect.lEvents = lEvent; 218 pThreadInfo->u.asyncselect.lEventsPending = lEvent; 219 pThreadInfo->hwnd = hwnd; 220 pThreadInfo->msg = msg; 221 if(lEvent == 0) { 217 pThreadInfo->u.asyncselect.mode = mode; 218 pThreadInfo->u.asyncselect.lEvents = lEventMask; 219 pThreadInfo->u.asyncselect.lEventsPending = lEventMask; 220 pThreadInfo->notifyHandle = notifyHandle; 221 pThreadInfo->notifyData = notifyData; 222 if(lEventMask == 0) { 222 223 //make sure this thread isn't used anymore 223 224 pThreadInfo->fRemoved = TRUE; … … 263 264 pThreadInfo = FindAsyncEvent(s); 264 265 if(pThreadInfo) { 265 *pHwnd = pThreadInfo->hwnd;266 *pMsg = pThreadInfo-> msg;266 *pHwnd = (HWND)pThreadInfo->notifyHandle; 267 *pMsg = pThreadInfo->notifyData; 267 268 *plEvent = pThreadInfo->u.asyncselect.lEvents; 268 269 }
Note:
See TracChangeset
for help on using the changeset viewer.