Changeset 1874 for trunk/dll/flesh.c


Ignore:
Timestamp:
Sep 27, 2015, 7:20:10 PM (10 years ago)
Author:
Gregg Young
Message:

DosSleep times in WaitFleshWorkListEmpty set by caller; TOPDIR code calls WaitFleshWorkListEmpty before ShowCnrRecord and now actually exists for directory containers in tree view. These calls are made from the object windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/flesh.c

    r1873 r1874  
    4444  26 Sep 15 GKY WaitFleshWorkListEmpty now gives error message and returns if semaphore request
    4545                fails more than 5 consecutive times.
     46  27 Sep 15 GKY DosSleep times in WaitFleshWorkListEmpty set by caller
    4647
    4748***********************************************************************/
     
    263264                                MPFROMP(pciParent),
    264265                                MPFROM2SHORT(CMA_FIRSTCHILD, CMA_ITEMORDER));
    265     // No children or filename null
     266    // Added by Stubby to create plus sign run Stubby on it here and skip it in ProcessDirectory
    266267    if (pciL && (INT)pciL != -1) {
    267268      AddFleshWorkRequest(hwndCnr, pciL, eStubby);
    268       // 2015-08-06 SHL FIXME to ensure this an not happen
     269      // 2015-08-06 SHL FIXME to ensure this can not happen
    269270      if (!*pciL->pszFileName || !strcmp(pciL->pszFileName, NullStr))
    270271        Runtime_Error(pszSrcFile, __LINE__, "Flesh called with pci %p pszFileName (null)", pciL);
     
    856857
    857858#ifndef WaitFleshWorkListEmpty // 2015-08-03 SHL FIXME debug
    858 VOID WaitFleshWorkListEmpty(PCSZ pszDirName)
     859VOID WaitFleshWorkListEmpty(PCSZ pszDirName, ULONG ulSleep)
    859860#else
    860 VOID WaitFleshWorkListEmptyDbg(PCSZ pszDirName, PCSZ pszSrcFile_, UINT uSrcLineNo_)
     861VOID WaitFleshWorkListEmptyDbg(PCSZ pszDirName, ULONG ulSleep, PCSZ pszSrcFile_, UINT uSrcLineNo_)
    861862#endif
    862863{
     
    933934      if (!item) {
    934935        if (waited)
    935           DosSleep(fExpandAll ? 1 : 240);               // Let PM do some work
     936          DosSleep(ulSleep);            // Let PM do some work
    936937        break;                          // Dependents gone from work list
    937938      }
    938939    } // if pszDirName
    939     DosSleep(fExpandAll ? 10 : 250);
     940    DosSleep(ulSleep);
    940941  } // for
    941942
Note: See TracChangeset for help on using the changeset viewer.