Changeset 7041 for trunk/src/wsock32/asyncthread.cpp
- Timestamp:
- Oct 13, 2001, 8:51:08 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/asyncthread.cpp
r6201 r7041 1 /* $Id: asyncthread.cpp,v 1.1 1 2001-07-07 14:29:40 achimhaExp $ */1 /* $Id: asyncthread.cpp,v 1.12 2001-10-13 18:51:07 sandervl Exp $ */ 2 2 3 3 /* … … 40 40 //// WSASetBlocking(FALSE, pThreadParm->hThread); 41 41 42 dprintf(("AsyncThread %x exit", pThreadParm->hAsyncTaskHandle)); 42 43 free((PVOID)pThreadParm); 43 44 } … … 109 110 memset(pThreadParm, 0, sizeof(*pThreadParm)); 110 111 asyncThreadMutex.leave(); 112 } 113 //****************************************************************************** 114 //****************************************************************************** 115 void WSACancelAllAsyncRequests() 116 { 117 PASYNCTHREADPARM pThreadInfo; 118 BOOL found = FALSE; 119 120 dprintf(("WSACancelAllAsyncRequests")); 121 asyncThreadMutex.enter(); 122 pThreadInfo = threadList; 123 124 while(pThreadInfo) { 125 dprintf(("WSACancelAllAsyncRequests %x", pThreadInfo->hAsyncTaskHandle)); 126 pThreadInfo->fCancelled = TRUE; 127 pThreadInfo->u.asyncselect.asyncSem->post(); 128 pThreadInfo = pThreadInfo->next; 129 } 130 asyncThreadMutex.leave(); 131 //TODO: not the right way to wait for the async threads to die 132 DosSleep(250); 111 133 } 112 134 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.