Changeset 1665
- Timestamp:
- Aug 5, 2012, 10:46:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/grep.c
r1564 r1665 39 39 in DoInsertion because pci is limited to 65535 files. (nRecord is a USHORT) 40 40 SHL's single loop fix. 41 05 Aug 12 GKY Replace SleepIfNeeded with IdleIfNeeded to improve IU response during long searches; it 42 will switch between normal and idle priority and back. 41 43 42 44 ***********************************************************************/ … … 502 504 p = searchPath; 503 505 do { // Process each directory that matches the mask 504 priority_normal();506 //priority_normal(); 505 507 if (*grep->stopflag) 506 508 break; … … 524 526 // 07 Feb 08 SHL 525 527 if (IsITimerExpired(pitdReport)) { 528 priority_normal(); 526 529 if (!hwndStatus) 527 530 WinSetWindowText(grep->hwndCurFile, searchPath); … … 532 535 WinSetWindowText(hwndStatus, s); 533 536 } 534 } 537 }; 535 538 } 536 539 DoAllSubdirs(grep, searchPath, TRUE, fle, numfls, pitdSleep, pitdReport); … … 542 545 sizeof(ffb), (PULONG) & ulFindCnt)); 543 546 DosFindClose(findHandle); 544 priority_normal();547 //priority_normal(); 545 548 } 546 549 if (p) // strip off last directory addition … … 600 603 do { 601 604 // Process each file that matches the mask 602 priority_normal();605 //priority_normal(); 603 606 pffbFile = pffbArray; 604 607 for (x = 0; x < ulFindCnt; x++) { … … 653 656 if (*grep->stopflag) 654 657 break; 655 SleepIfNeeded(pitdSleep, 1); 658 //SleepIfNeeded 659 IdleIfNeeded(pitdSleep, 30); 656 660 ulFindCnt = FilesToGet; 657 661 rc = xDosFindNext(findHandle, pffbArray, ulBufBytes, &ulFindCnt, FIL_QUERYEASIZEL); … … 659 663 660 664 DosFindClose(findHandle); 661 priority_normal();665 //priority_normal(); 662 666 } // if 663 667
Note:
See TracChangeset
for help on using the changeset viewer.