Changeset 1299 for trunk/dll/treecnr.c


Ignore:
Timestamp:
Nov 29, 2008, 12:48:50 AM (17 years ago)
Author:
Gregg Young
Message:

Scan each drive on separate thread (added StubbyScanThread) to speed treecnr scans

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/treecnr.c

    r1277 r1299  
    806806      WinSendMsg(dcd->hwndCnr,
    807807                 CM_SCROLLWINDOW,
    808                  MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(-1));
     808                 MPFROMSHORT(CMA_HORIZONTAL), MPFROMLONG(-1));
     809      while (StubbyScanCount !=0)
     810        DosSleep(100);
    809811      FillTreeCnr(dcd->hwndCnr, dcd->hwndParent);
    810812      if (fOkayMinimize) {
     
    16891691          BOOL wasFollowing;
    16901692
    1691           DosEnterCritSec();
     1693          //DosEnterCritSec(); //GKY 11-28-08
    16921694          wasFollowing = fFollowTree;
    16931695          fFollowTree = FALSE;
    1694           DosExitCritSec();
     1696          //DosExitCritSec();
    16951697          if (pci && (INT) pci != -1 && !(pci->flags & RECFLAGS_ENV)) {
    16961698            WinSendMsg(hwnd,
     
    17301732            }
    17311733          }
    1732           DosEnterCritSec();
     1734          //DosEnterCritSec(); //GKY 11-28-08
    17331735          fFollowTree = wasFollowing;
    1734           DosExitCritSec();
     1736          //DosExitCritSec();
    17351737        }
    17361738        break;
Note: See TracChangeset for help on using the changeset viewer.