Changeset 533 for trunk/dll/viewinf.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/viewinf.c

    r377 r533  
    1111  01 Aug 04 SHL Rework lstrip/rstrip usage
    1212  17 Jul 06 SHL Use Runtime_Error
     13  03 Nov 06 SHL Renames
     14  03 Nov 06 SHL Count thread usage
    1315
    1416***********************************************************************/
     
    3436static PSZ pszSrcFile = __FILE__;
    3537
    36 #pragma alloc_text(VIEWINFS,FillListbox,ViewInfProc)
     38#pragma alloc_text(VIEWINFS,FillListboxThread,ViewInfProc)
    3739
    3840typedef struct {
     
    4345
    4446
    45 static VOID FillListbox (VOID *args)
     47static VOID FillListboxThread(VOID *args)
    4648{
    4749  HWND hwnd;
     
    6264
    6365      WinCancelShutdown(hmq2,TRUE);
     66      IncrThreadUsage();
    6467      priority_normal();
    6568      if(!dummy->help)
     
    185188      WinDestroyMsgQueue(hmq2);
    186189    }
     190    PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID);
     191    DecrThreadUsage();
    187192    WinTerminate(hab2);
    188193  }
    189   PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID);
    190194  free(dummy);
    191195}
     
    281285          if (help)
    282286            d->help = 1;
    283           if(_beginthread(FillListbox,NULL,65536,(PVOID)d) == -1) {
     287          if(_beginthread(FillListboxThread,NULL,65536,(PVOID)d) == -1) {
    284288            Runtime_Error(pszSrcFile, __LINE__, GetPString(IDS_COULDNTSTARTTHREADTEXT));
    285289            free(d);
Note: See TracChangeset for help on using the changeset viewer.