Changeset 1874 for trunk/dll/select.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/select.c

    r1873 r1874  
    3939                work with Flesh, Stubby and UnFlesh being moved to a thread
    4040  26 Sep 15 GKY Changes to speed up ExpandAll
     41  27 Sep 15 GKY DosSleep times in WaitFleshWorkListEmpty set by caller
    4142
    4243***********************************************************************/
     
    600601          DosSleep(0);       // Yield to EXPANDTREE and Flesh thread
    601602        if (!IsFleshWorkListEmpty()) {
    602           WaitFleshWorkListEmpty(NULL); // Let it expand
     603          WaitFleshWorkListEmpty(NULL, 10); // Let it expand
    603604        }
    604605      }
     
    606607    while (pci && (INT)pci != -1) {
    607608      ExpandAll(hwndCnr, count, pci);
    608       if (!IsFleshWorkListEmpty())
    609         WaitFleshWorkListEmpty(NULL); // Wait for container to catch up
     609      if (count != 0 && !IsFleshWorkListEmpty())
     610        WaitFleshWorkListEmpty(NULL, 10); // Wait for container to catch up
    610611      pci = (PCNRITEM) WinSendMsg(hwndCnr, CM_QUERYRECORD, MPFROMP(pci),
    611612                                  MPFROM2SHORT(CMA_NEXT, CMA_ITEMORDER));
Note: See TracChangeset for help on using the changeset viewer.