VirtualBox

Changeset 101898 in vbox


Ignore:
Timestamp:
Nov 6, 2023 7:37:35 PM (15 months ago)
Author:
vboxsync
Message:

libs/xpcom: Rmove unused code, bugref:10545

Location:
trunk/src/libs/xpcom18a4/xpcom/threads
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/threads/plevent.c

    r101897 r101898  
    522522             PLDestroyEventProc destructor)
    523523{
    524 #ifdef PL_POST_TIMINGS
    525     self->postTime = PR_IntervalNow();
    526 #endif
    527524    PR_INIT_CLIST(&self->link);
    528525    self->handler = handler;
     
    568565    }
    569566}
    570 #ifdef PL_POST_TIMINGS
    571 static long s_eventCount = 0;
    572 static long s_totalTime  = 0;
    573 #endif
    574567
    575568PR_IMPLEMENT(void)
     
    586579    if(self->lock)
    587580      PR_DestroyLock(self->lock);
    588 
    589 #ifdef PL_POST_TIMINGS
    590     s_totalTime += PR_IntervalNow() - self->postTime;
    591     s_eventCount++;
    592     printf("$$$ running avg (%d) \n", PR_IntervalToMilliseconds(s_totalTime/s_eventCount));
    593 #endif
    594581
    595582    self->destructor(self);
  • trunk/src/libs/xpcom18a4/xpcom/threads/plevent.h

    r101897 r101898  
    529529    PRCondVar*          condVar;
    530530    PRBool              handled;
    531 #ifdef PL_POST_TIMINGS
    532     PRIntervalTime      postTime;
    533 #endif
    534531#ifdef XP_UNIX
    535532    unsigned long       id;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette