Changeset 528 for trunk/dll/grep.c


Ignore:
Timestamp:
Nov 4, 2006, 9:59:06 PM (19 years ago)
Author:
root
Message:

Count thread usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/grep.c

    r517 r528  
    1818  26 Jul 06 SHL Check more run time errors
    1919  19 Oct 06 SHL Correct . and .. detect
     20  03 Nov 06 SHL Count thread usage
    2021
    2122***********************************************************************/
     
    4041static PSZ pszSrcFile = __FILE__;
    4142
    42 #pragma alloc_text(GREP,SecsSince1980,match,mmatch,dogrep)
     43#pragma alloc_text(GREP,SecsSince1980,match,mmatch,GrepThread)
    4344#pragma alloc_text(GREP,doallsubdirs,domatchingfiles)
    4445
     
    235236
    236237
    237 VOID dogrep (VOID *arg)
     238VOID GrepThread (VOID *arg)
    238239{
    239240  HAB           ghab;
     
    258259    if(ghmq) {
    259260      WinCancelShutdown(ghmq,TRUE);
     261      IncrThreadUsage();
    260262      DosSleep(128L);
    261263      WinSetWindowText(grep.hwndCurFile,
     
    371373      WinDestroyMsgQueue(ghmq);
    372374    }
     375    DecrThreadUsage();
    373376    WinTerminate(ghab);
    374377  }
Note: See TracChangeset for help on using the changeset viewer.