Changeset 533 for trunk/dll/killproc.c


Ignore:
Timestamp:
Nov 4, 2006, 10:07:44 PM (19 years ago)
Author:
root
Message:

Renames
Count thread usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/killproc.c

    r451 r533  
    1212  14 Jul 06 SHL Use Runtime_Error
    1313  29 Jul 06 SHL Use xfgets
     14  03 Nov 06 SHL Renames
     15  03 Nov 06 SHL Count thread usage
    1416
    1517***********************************************************************/
     
    3739static PSZ pszSrcFile = __FILE__;
    3840
    39 #pragma alloc_text(KILLPROC,FillKillList,FillKillList2,GetDosPgmName,KillDlgProc)
     41#pragma alloc_text(KILLPROC,FillKillListThread,FillKillListThread2,GetDosPgmName,KillDlgProc)
    4042
    4143CHAR *GetDosPgmName (PID pid,CHAR *string)
     
    6971
    7072
    71 VOID FillKillList2 (VOID *arg)
     73static VOID FillKillListThread2 (VOID *arg)
    7274{
    7375  HWND          hwnd = *(HWND *)arg;
     
    8385  thmq = WinCreateMsgQueue(thab,0);
    8486  WinCancelShutdown(thmq,TRUE);
     87  IncrThreadUsage();
    8588
    8689  WinSendDlgItemMsg(hwnd,KILL_LISTBOX,LM_DELETEALL,MPVOID,MPVOID);
     
    126129    PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID);
    127130  WinDestroyMsgQueue(thmq);
     131  DecrThreadUsage();
    128132  WinTerminate(thab);
    129133}
    130134
    131135
    132 VOID FillKillList (VOID *arg)
     136static VOID FillKillListThread (VOID *arg)
    133137{
    134138  HWND  hwnd = *(HWND *)arg;
     
    149153  thmq = WinCreateMsgQueue(thab,0);
    150154  WinCancelShutdown(thmq,TRUE);
     155  IncrThreadUsage();
    151156
    152157  WinSendDlgItemMsg(hwnd,
     
    227232Abort:
    228233  DosForceDelete("$PSTAT#$.#$#");
    229   PostMsg(hwnd,
    230           UM_CONTAINER_FILLED,
    231           MPVOID,
    232           MPVOID);
     234  PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID);
    233235  WinDestroyMsgQueue(thmq);
     236  DecrThreadUsage();
    234237  WinTerminate(thab);
    235238}
     
    355358          listdone = FALSE;
    356359          if(fUseQProcStat) {
    357             if(_beginthread(FillKillList2,
     360            if(_beginthread(FillKillListThread2,
    358361                            NULL,
    359362                            65536,
     
    364367          }
    365368          else {
    366             if(_beginthread(FillKillList,
     369            if(_beginthread(FillKillListThread,
    367370                            NULL,
    368371                            65536,
Note: See TracChangeset for help on using the changeset viewer.