Changeset 1570 for trunk/dll/comp.c


Ignore:
Timestamp:
Jun 13, 2011, 12:09:19 AM (14 years ago)
Author:
Gregg Young
Message:

Added IdleIfNeeded to place load and free loops to idle priority when dealing with large numbers of items. Used SleepIfNeeded more places for a similar purpose.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r1563 r1570  
    7676  23 Oct 10 GKY Add ForwardslashToBackslash function to streamline code
    7777  29 May 11 SHL Rework >65K records logic - prior fix was not quite right
     78  12 Jun 11 GKY Added SleepIfNeeded in the container fill loop
    7879
    7980***********************************************************************/
     
    13431344  APIRET rc;
    13441345  static BOOL fDone;
     1346  ITIMER_DESC itdSleep = { 0 };         // 30 May 11 GKY
    13451347
    13461348  if (!str || !*str) {
     
    13761378                     pffbArray, ulBufBytes, &ulFindCnt, FIL_QUERYEASIZEL);
    13771379  if (!rc) {
     1380    InitITimer(&itdSleep, 500);
    13781381    do {
    13791382      pffbFile = pffbArray;
     
    14231426      ulFindCnt = FilesToGet;
    14241427      rc = xDosFindNext(hDir, pffbArray, ulBufBytes, &ulFindCnt, FIL_QUERYEASIZEL);
     1428      SleepIfNeeded(&itdSleep, 1);
    14251429    } while (!rc);
    14261430
Note: See TracChangeset for help on using the changeset viewer.