Changeset 1880 for trunk/dll/systemf.c
- Timestamp:
- Oct 12, 2015, 8:26:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/systemf.c
r1877 r1880 1242 1242 for (ctr = 0;; ctr++) 1243 1243 { 1244 DosSleep(50); //05 Aug 07 GKY 2001244 DosSleep(50); 1245 1245 if (DosSetSession(ulSessID, &sd)) // Check if session gone (i.e. finished) 1246 1246 break; … … 1258 1258 DCWW_NOWAIT, &bPriority, hTermQSem); 1259 1259 if (rc == ERROR_QUE_EMPTY) { 1260 DosSleep(50); //05 Aug 07 GKY 1001260 DosSleep(50); 1261 1261 continue; 1262 1262 } … … 1273 1273 // Oh heck 1274 1274 Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosReadQueue"); 1275 DosSleep(100); //05 Aug 07 GKY 5001275 DosSleep(100); 1276 1276 continue; 1277 1277 } 1278 1279 // printf("%s %d DosReadQueue thread 0x%x sess %u sessRC %u rq.pid 0x%x rq.data 0x%x\n",1280 // __FILE__, __LINE__,ptib->tib_ordinal,pTermInfo->usSessID,pTermInfo->usRC,rq.pid, rq.ulData); fflush(stdout);1281 1278 1282 1279 if (pTermInfo->usSessID == ulSessID) … … 1286 1283 { 1287 1284 static ULONG ulLastSessID; 1288 // printf("%s %d requeue thread 0x%x our sess %u term sess %u term rc %u\n",1289 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID,pTermInfo->usSessID,pTermInfo->usRC); fflush(stdout);1290 // fixme to be gone when no longer needed for debug?1291 1285 if (ulLastSessID) { 1292 DosSleep(100); //05 Aug 07 GKY 5001286 DosSleep(100); 1293 1287 ulLastSessID = pTermInfo->usSessID; 1294 1288 } … … 1297 1291 if (rc) 1298 1292 Dos_Error(MB_CANCEL,rc,hwnd,pszSrcFile,__LINE__,"DosWriteQueue"); 1299 DosSleep(50); //05 Aug 07 GKY 100// Let other thread see queue entry1293 DosSleep(50); // Let other thread see queue entry 1300 1294 } 1301 1295 } // for 1302 1296 1303 1297 ret = pTermInfo->usRC == 0; // Set 1 if rc 0 else 0 1304 // printf("%s %d thread 0x%x term for sess %u\n",1305 // __FILE__, __LINE__,ptib->tib_ordinal,ulSessID);fflush(stdout);1306 1298 DosFreeMem(pTermInfo); 1307 1299 }
Note:
See TracChangeset
for help on using the changeset viewer.