Changeset 535


Ignore:
Timestamp:
Nov 4, 2006, 9:08:42 PM (14 years ago)
Author:
root
Message:

Count thread usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r517 r535  
    2222  15 Aug 06 SHL Turn off hide not selected on dir change
    2323  19 Oct 06 SHL Correct . and .. detect
     24  03 Nov 06 SHL Count thread usage
    2425
    2526***********************************************************************/
     
    168169      if(hmq2) {
    169170        WinCancelShutdown(hmq2,TRUE);
     171        IncrThreadUsage();
    170172        if(!IsFile(fc.file1) || IsRoot(fc.file1)) {
    171173          p1 = strrchr(fc.file2,'\\');
     
    269271          fclose(fp1);
    270272        }
     273        DecrThreadUsage();
    271274        WinDestroyMsgQueue(hmq2);
    272275      }
     
    363366    if(hmq) {
    364367      WinCancelShutdown(hmq,TRUE);
     368      IncrThreadUsage();
    365369      priority_normal();
    366370      switch(cmp->action) {
     
    590594      WinDestroyMsgQueue(hmq);
    591595    }
     596    DecrThreadUsage();
    592597    WinTerminate(hab);
    593598  }
     
    615620    if(hmq) {
    616621      WinCancelShutdown(hmq,TRUE);
     622      IncrThreadUsage();
    617623      priority_normal();
    618624      switch(cmp->action) {
     
    637643      WinDestroyMsgQueue(hmq);
    638644    }
     645    DecrThreadUsage();
    639646    WinTerminate(hab);
    640647  }
     
    787794
    788795      WinCancelShutdown(hmq,TRUE);
     796      IncrThreadUsage();
    789797      hwndLeft = WinWindowFromID(cmp->hwnd,COMP_LEFTDIR);
    790798      hwndRight = WinWindowFromID(cmp->hwnd,COMP_RIGHTDIR);
     
    14101418      WinDestroyMsgQueue(hmq);
    14111419    }
     1420    DecrThreadUsage();
    14121421    WinTerminate(hab);
    14131422  }
Note: See TracChangeset for help on using the changeset viewer.