Changeset 1570 for trunk/dll/makelist.c
- Timestamp:
- Jun 13, 2011, 12:09:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/makelist.c
r1210 r1570 16 16 29 Feb 08 GKY Use xfree where appropriate 17 17 17 Jul 08 SHL Add SetListOwner for Fortify support 18 12 Jun 11 GKY Added IdleIfNeeded to the freelist loop to improve system 19 responsiveness when freeing lists with large numbers of items 18 20 19 21 ***********************************************************************/ … … 36 38 #include "wrappers.h" // xfree 37 39 #include "fortify.h" // 06 May 08 SHL 40 #include "tmrsvcs.h" // ITIMER_DESC 38 41 39 42 static PSZ pszSrcFile = __FILE__; … … 85 88 { 86 89 UINT x; 87 90 ITIMER_DESC itdSleep = { 0 }; 91 88 92 if (list) { 93 InitITimer(&itdSleep, 500); 89 94 for (x = 0; list[x]; x++) { 90 95 #ifdef __DEBUG_ALLOC__ … … 92 97 #endif 93 98 free(list[x]); 99 if (!IdleIfNeeded(&itdSleep, 30)) { 100 for (x = x + 1; list[x]; x++) { 101 free(list[x]); 102 } 103 break; 104 } 94 105 } 95 106 #ifdef __DEBUG_ALLOC__ … … 97 108 #endif 98 109 free(list); 99 } 100 DosPostEventSem(CompactSem); 110 priority_normal(); 111 DosPostEventSem(CompactSem); 112 } 101 113 } 102 114
Note:
See TracChangeset
for help on using the changeset viewer.