- Timestamp:
- Jan 6, 2003, 2:05:40 PM (23 years ago)
- Location:
- trunk/src/wsock32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wsock32/asyncthread.cpp
r7992 r9627 1 /* $Id: asyncthread.cpp,v 1.1 5 2002-02-23 16:39:09sandervl Exp $ */1 /* $Id: asyncthread.cpp,v 1.16 2003-01-06 13:05:40 sandervl Exp $ */ 2 2 3 3 /* … … 121 121 void WSACancelAllAsyncRequests() 122 122 { 123 PASYNCTHREADPARM pThreadInfo; 124 BOOL found = FALSE; 123 PASYNCTHREADPARM pThreadInfo; 125 124 126 125 dprintf(("WSACancelAllAsyncRequests")); … … 135 134 } 136 135 asyncThreadMutex.leave(); 137 //TODO: not the right way to wait for the async threads to die 138 DosSleep(250); 136 } 137 //****************************************************************************** 138 //****************************************************************************** 139 void WSAWaitForAllAsyncRequests() 140 { 141 int wait = 0; 142 143 dprintf(("WSAWaitForAllAsyncRequests")); 144 145 //We don't want to wait forever until all async request threads have died 146 //(just in case something goes wrong in select()) 147 //So wait up to one second for all threads to end. 148 while(threadList && wait < 1000) { 149 DosSleep(20); 150 wait += 20; 151 } 139 152 } 140 153 //****************************************************************************** -
trunk/src/wsock32/asyncthread.h
r8939 r9627 1 /* $Id: asyncthread.h,v 1.1 3 2002-07-30 15:34:51 achimhaExp $ */1 /* $Id: asyncthread.h,v 1.14 2003-01-06 13:05:40 sandervl Exp $ */ 2 2 3 3 /* … … 93 93 94 94 void WSACancelAllAsyncRequests(); 95 void WSAWaitForAllAsyncRequests(); 95 96 96 97 #endif //__ASYNCTHREAD_H__ -
trunk/src/wsock32/wsa.cpp
r8092 r9627 1 /* $Id: wsa.cpp,v 1. 9 2002-03-18 10:03:49sandervl Exp $ */1 /* $Id: wsa.cpp,v 1.10 2003-01-06 13:05:40 sandervl Exp $ */ 2 2 3 3 /* … … 94 94 WSACancelAllAsyncRequests(); 95 95 winsockcleanupsockets(); 96 WSAWaitForAllAsyncRequests(); 96 97 97 98 fWSAInitialized = FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.