Changeset 1873 for trunk/dll/select.c


Ignore:
Timestamp:
Sep 26, 2015, 7:23:13 PM (10 years ago)
Author:
Gregg Young
Message:

Adjustments to ShowTreeRec to eliminate failures and reduce retries and container noise on tree switches. Remove fInitialDriveScan code. Changes to speed up ExpandAll. WaitFleshWorkListEmpty now gives error message and returns if semaphore request fails more than 5 consecutive times.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/select.c

    r1872 r1873  
    3838                in UM_EXPAND until until drive is completely expanded. Changes were need to
    3939                work with Flesh, Stubby and UnFlesh being moved to a thread
     40  26 Sep 15 GKY Changes to speed up ExpandAll
    4041
    4142***********************************************************************/
     
    572573{
    573574  PCNRITEM pci;
    574   static BOOL fExpanding = FALSE;
     575  static BOOL fExpanding = FALSE; // statics are only used by tree container
    575576  static INT counter = 1;
    576577
     
    596597      if (count != 0) {
    597598        fExpanding = TRUE;
     599        if (IsFleshWorkListEmpty())
     600          DosSleep(0);       // Yield to EXPANDTREE and Flesh thread
    598601        if (!IsFleshWorkListEmpty()) {
    599602          WaitFleshWorkListEmpty(NULL); // Let it expand
     
    609612    }
    610613  }
    611   //DosSleep(0);
    612614  return fExpanding;
    613615}
Note: See TracChangeset for help on using the changeset viewer.