telephonyserverplugins/common_tsy/commontsy/src/mmutility/CResponseTimer.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    14 //
    14 //
    15 
    15 
    16 
    16 
    17 
    17 
    18 //  INCLUDE FILES
    18 //  INCLUDE FILES
       
    19 
       
    20 #include "OstTraceDefinitions.h"
       
    21 #ifdef OST_TRACE_COMPILER_IN_USE
       
    22 #include "CResponseTimerTraces.h"
       
    23 #endif
       
    24 
    19 #include "CResponseTimer.h"
    25 #include "CResponseTimer.h"
    20 #include "cmmphonetsy.h"
    26 #include "cmmphonetsy.h"
    21 #include "CResponseTimerStore.h"
    27 #include "CResponseTimerStore.h"
    22 #include "MmTsy_timeoutdefs.h"
    28 #include "MmTsy_timeoutdefs.h"
    23 #include <ctsy/tflogger.h>
       
    24 
    29 
    25 #ifdef REQHANDLE_TIMER
    30 #ifdef REQHANDLE_TIMER
    26 
    31 
    27 // ======== MEMBER FUNCTIONS ========
    32 // ======== MEMBER FUNCTIONS ========
    28 
    33 
   114         CResponseTimerStore::CTableEntry *aEntry = 
   119         CResponseTimerStore::CTableEntry *aEntry = 
   115             iPhone->GetTimeStampStore()->GetEntry( index );
   120             iPhone->GetTimeStampStore()->GetEntry( index );
   116         //if the entry is expired, complete and delete it
   121         //if the entry is expired, complete and delete it
   117         if ( aEntry->GetTimeStamp() <= iBeatCounter )
   122         if ( aEntry->GetTimeStamp() <= iBeatCounter )
   118             {   
   123             {   
   119 TFLOGSTRING2("TSY: Request completed due timer expiration, IPC: %d", aEntry->GetIPC() ); 
   124 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CRESPONSETIMER_BEAT_1, "TSY: Request completed due timer expiration, IPC: %d", aEntry->GetIPC() );
   120             
   125             
   121             //call completion of the request due expired timer 
   126             //call completion of the request due expired timer 
   122             iPhone->TimerExpired( aEntry->GetUserObject(),
   127             iPhone->TimerExpired( aEntry->GetUserObject(),
   123                                   aEntry->GetHandleType(),
   128                                   aEntry->GetHandleType(),
   124                                   aEntry->GetIPC() );
   129                                   aEntry->GetIPC() );