Changeset 528
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/dll/grep.c
r517 r528 18 18 26 Jul 06 SHL Check more run time errors 19 19 19 Oct 06 SHL Correct . and .. detect 20 03 Nov 06 SHL Count thread usage 20 21 21 22 ***********************************************************************/ … … 40 41 static PSZ pszSrcFile = __FILE__; 41 42 42 #pragma alloc_text(GREP,SecsSince1980,match,mmatch, dogrep)43 #pragma alloc_text(GREP,SecsSince1980,match,mmatch,GrepThread) 43 44 #pragma alloc_text(GREP,doallsubdirs,domatchingfiles) 44 45 … … 235 236 236 237 237 VOID dogrep(VOID *arg)238 VOID GrepThread (VOID *arg) 238 239 { 239 240 HAB ghab; … … 258 259 if(ghmq) { 259 260 WinCancelShutdown(ghmq,TRUE); 261 IncrThreadUsage(); 260 262 DosSleep(128L); 261 263 WinSetWindowText(grep.hwndCurFile, … … 371 373 WinDestroyMsgQueue(ghmq); 372 374 } 375 DecrThreadUsage(); 373 376 WinTerminate(ghab); 374 377 }  - 
      
trunk/dll/mle.c
r350 r528 12 12 16 Apr 06 SHL MLEexportfile: rework to avoid wrap problems 13 13 14 Jul 06 SHL Use Runtime_Error 14 03 Nov 06 SHL Count thread usage 14 15 15 16 ***********************************************************************/ … … 769 770 if(thmq) { 770 771 WinCancelShutdown(thmq,TRUE); 772 IncrThreadUsage(); 771 773 priority_normal(); 772 774 if(bkg->hex == 1) … … 786 788 WinDestroyMsgQueue(thmq); 787 789 } 790 DecrThreadUsage(); 788 791 WinTerminate(thab); 789 792 _endthread(); 790 793 } 794 // fixme to be gone? 791 795 PostMsg(bkg->hwndReport,bkg->msg,MPVOID,MPVOID); 792 796 }  - 
      
trunk/dll/undel.c
r406 r528 11 11 17 Jul 06 SHL Use Runtime_Error 12 12 29 Jul 06 SHL Use xfgets_bstripcr 13 03 Nov 06 SHL Count thread usage 13 14 14 15 ***********************************************************************/ … … 33 34 static PSZ pszSrcFile = __FILE__; 34 35 35 #pragma alloc_text(UNDELETE,FillUndelList ,UndeleteDlgProc)36 #pragma alloc_text(UNDELETE,FillUndelListThread,UndeleteDlgProc) 36 37 37 38 struct tempstruct { … … 42 43 43 44 44 VOID FillUndelList(VOID *arg)45 static VOID FillUndelListThread (VOID *arg) 45 46 { 46 47 HWND hwnd; … … 62 63 thab = WinInitialize(0); 63 64 thmq = WinCreateMsgQueue(thab,0); 64 WinCancelShutdown(thmq,TRUE); 65 if(thab && thmq) { 65 if (thab && thmq) { 66 WinCancelShutdown(thmq,TRUE); 67 IncrThreadUsage(); 66 68 WinSendDlgItemMsg(hwnd,UNDEL_LISTBOX,LM_DELETEALL,MPVOID,MPVOID); 67 69 unlinkf("%s","$UDELETE.#$#"); … … 149 151 } 150 152 Abort: 153 ; 154 } 155 DosForceDelete("$UDELETE.#$#"); 156 if (undelinfo) 157 free(undelinfo); 158 if (thmq) { 159 PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID); 160 if (killme) 161 PostMsg(hwnd,WM_CLOSE,MPVOID,MPVOID); 151 162 WinDestroyMsgQueue(thmq); 163 } 164 if (thab) { 165 DecrThreadUsage(); 152 166 WinTerminate(thab); 153 167 } 154 DosForceDelete("$UDELETE.#$#");155 PostMsg(hwnd,156 UM_CONTAINER_FILLED,157 MPVOID,158 MPVOID);159 if(killme)160 PostMsg(hwnd,161 WM_CLOSE,162 MPVOID,163 MPVOID);164 if(undelinfo)165 free(undelinfo);166 168 } 167 169 … … 226 228 toupper(*undelinfo->path)); 227 229 WinSetWindowText(hwnd,s); 228 if (_beginthread(FillUndelList ,NULL,65536,(PVOID)undelinfo) == -1)230 if (_beginthread(FillUndelListThread,NULL,65536,(PVOID)undelinfo) == -1) 229 231 { 230 232 Runtime_Error(pszSrcFile, __LINE__,GetPString(IDS_COULDNTSTARTTHREADTEXT));  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  