Changeset 1873 for trunk/dll/flesh.c
- Timestamp:
- Sep 26, 2015, 7:23:13 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/dll/flesh.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/flesh.c
r1871 r1873 41 41 complete container item. Add a flag to indicate when a directory needed to be 42 42 Fleshed 43 26 Sep 15 GKY Changes to speed up ExpandAll 44 26 Sep 15 GKY WaitFleshWorkListEmpty now gives error message and returns if semaphore request 45 fails more than 5 consecutive times. 43 46 44 47 ***********************************************************************/ … … 74 77 #include "common.h" // IncrThreadUsage DecrThreadUsage 75 78 #include "pathutil.h" 79 #include "treecnr.h" // fExpandAll 76 80 #if 0 77 81 #define __PMPRINTF__ … … 863 867 BOOL waited; 864 868 PCSZ pszSavedFleshFocusPath; 869 INT rcCount = 0; 865 870 866 871 if (tid == 1 || tid == tidFleshWorkListThread) { … … 902 907 if (pszDirName) { 903 908 rc = xDosRequestMutexSem(hmtxFleshWork, SEM_INDEFINITE_WAIT); 904 if (rc) 905 continue; // Maybe should return ??? 909 if (rc) { 910 rcCount++; 911 if (rcCount < 6) 912 continue; // Maybe should return ??? 913 else { 914 Dos_Error(MB_CANCEL, rc, HWND_DESKTOP, pszSrcFile, __LINE__, 915 PCSZ_DOSREQUESTMUTEXSEM); 916 return; 917 } 918 919 } 906 920 907 921 if (!pathSaved) { … … 915 929 916 930 xDosReleaseMutexSem(hmtxFleshWork); 931 rcCount = 0; 917 932 918 933 if (!item) { 919 934 if (waited) 920 DosSleep(100); // Let PM do some work935 DosSleep(fExpandAll ? 1 : 240); // Let PM do some work 921 936 break; // Dependents gone from work list 922 937 } 923 938 } // if pszDirName 924 925 DosSleep(250); 939 DosSleep(fExpandAll ? 10 : 250); 926 940 } // for 927 941
Note:
See TracChangeset
for help on using the changeset viewer.
