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

    r355 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***********************************************************************/
     
    3436
    3537#pragma alloc_text(PRINTER,PrinterReady,SayPrinterReady)
    36 #pragma alloc_text(PRINTER2,PrintList)
     38#pragma alloc_text(PRINTER2,PrintListThread)
    3739#pragma alloc_text(PRINTER3,PrintDlgProc)
    3840
     
    9294
    9395
    94 //=== PrintList - background-print a list of files ===
    95 
    96 VOID PrintList (VOID *arg)
     96//=== PrintListThread - background-print a list of files ===
     97
     98VOID PrintListThread (VOID *arg)
    9799{
    98100  HAB          hab2;
     
    122124    if(hmq2) {
    123125      WinCancelShutdown(hmq2,TRUE);
    124       if(hwndMain)
    125         WinSendMsg(hwndMain,UM_THREADUSE,MPFROMLONG(1L),MPVOID);
     126      IncrThreadUsage();
    126127      if(li && li->list && li->list[0]) {
    127128        AddNote(GetPString(IDS_PRINTINGLISTTEXT));
     
    321322          AddNote(GetPString(IDS_PRINTEDLISTTEXT));
    322323      }
    323       if(hwndMain)
    324         WinSendMsg(hwndMain,UM_THREADUSE,MPVOID,MPVOID);
    325324      WinDestroyMsgQueue(hmq2);
    326325    }
     326    DecrThreadUsage();
    327327    WinTerminate(hab2);
    328328  }
Note: See TracChangeset for help on using the changeset viewer.