Changeset 1871 for trunk/dll/init.c


Ignore:
Timestamp:
Sep 21, 2015, 12:57:02 AM (10 years ago)
Author:
Gregg Young
Message:

Create CollapseAll and modify ExpandAll to reduce code overhead both to try and speed drive expansion. Change ExpandAll to allow it to loop in UM_EXPAND until until drive is completely expanded. Changes were need to work with Flesh, Stubby and UnFlesh being moved to a thread. Add code for Flesh to skip the directory entry added by Stubby (eliminate use of NULL/Nullstr pszFileNames by Stubby). Add code in Stubby to insert a complete container item. Add a flag to indicate when a directory needed to be Fleshed. Get expand and switch code to work with Flesh, UnFlesh and Stubby running on a thread. Loop and idle ExpandAll; Move tree expand to a thread; Have ShowTreeRec wait for the Flesh thread. Add a correction factor so directories don't get placed above the top of the tree container when a large drive has been expanded. Debug is mostly still in but all turned off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1868 r1871  
    139139  22 Aug 15 GKY Remove recurse scan code.
    140140  24 Aug 15 GKY Remove obsolete code fDontAsk?zip
     141  20 Sep 15 GKY Move tree expand to a thread.
    141142 
    142143***********************************************************************/
     
    262263BOOL fReminimize;
    263264BOOL fWantFirstTimeInit;
    264 BOOL fUseShellEnv;;
     265BOOL fUseShellEnv;
    265266HPOINTER hptrApp;
    266267HPOINTER hptrArc;
     
    897898    return FALSE;
    898899
     900  if (!StartExpandTreeThread())
     901     return FALSE;
     902
    899903  // timer messages are sent from a separate thread -- start it
    900904  if (!StartTimer()) {
     
    16461650
    16471651  // 2015-08-11 SHL FIXME debug
    1648   DbgMsg(pszSrcFile, __LINE__, "ShowEnv %u SwitchTree %u SwitchTreeExpand %u SwitchTreeOnFocus %u CollapseFirst %u", fShowEnv, fSwitchTreeOnDirChg, fSwitchTreeExpand, fSwitchTreeOnFocus, fCollapseFirst);
     1652  //DbgMsg(pszSrcFile, __LINE__, "ShowEnv %u SwitchTree %u SwitchTreeExpand %u SwitchTreeOnFocus %u CollapseFirst %u", fShowEnv, fSwitchTreeOnDirChg, fSwitchTreeExpand, fSwitchTreeOnFocus, fCollapseFirst);
    16491653 
    16501654  LoadDetailsSwitches(PCSZ_DIRCNR, &dsDirCnrDefault, FALSE);
Note: See TracChangeset for help on using the changeset viewer.