hwrmhaptics/hapticsserver/src/hwrmhapticsserveractivescheduler.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Haptic server active scheduler implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "hwrmhapticsserveractivescheduler.h"
       
    20 #include "hwrmhapticstrace.h"
       
    21 
       
    22 // ---------------------------------------------------------------------------
       
    23 // C++ default constructor
       
    24 // ---------------------------------------------------------------------------
       
    25 //
       
    26 CHWRMHapticsServerActiveScheduler::CHWRMHapticsServerActiveScheduler()
       
    27     : CActiveScheduler()
       
    28     {
       
    29     COMPONENT_TRACE( _L( "CHWRMHapticsServerActiveScheduler::CHWRMHapticsServerActiveScheduler()") );
       
    30     }
       
    31 
       
    32 // ---------------------------------------------------------------------------
       
    33 // Public constructor. Leaves if out of memory.
       
    34 // ---------------------------------------------------------------------------
       
    35 //
       
    36 CHWRMHapticsServerActiveScheduler* CHWRMHapticsServerActiveScheduler::NewL()
       
    37     {
       
    38     COMPONENT_TRACE( ( _L( "CHWRMHapticsServerActiveScheduler::NewL()" )) );
       
    39 
       
    40     CHWRMHapticsServerActiveScheduler* scheduler = 
       
    41         new ( ELeave ) CHWRMHapticsServerActiveScheduler;
       
    42 
       
    43     COMPONENT_TRACE( ( _L( "CHWRMHapticsServerActiveScheduler::NewL - return 0x%x" ), scheduler ) );
       
    44 
       
    45     return scheduler;
       
    46     }
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // Destructor
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 CHWRMHapticsServerActiveScheduler::~CHWRMHapticsServerActiveScheduler()
       
    53     {
       
    54     COMPONENT_TRACE( _L( "CHWRMHapticsServerActiveScheduler::~CHWRMHapticsServerActiveScheduler()") );
       
    55     }
       
    56 
       
    57 // ---------------------------------------------------------------------------
       
    58 // A leave from any active object's RunL() causes active scheduler's 
       
    59 // Error() -method to be called. The default implementation panics the thread.
       
    60 // This implementation overrides the default implementation, and is defined 
       
    61 // here as empty implementation, so that the server thread is never paniced
       
    62 // in case of an error.
       
    63 // ---------------------------------------------------------------------------
       
    64 //
       
    65 void CHWRMHapticsServerActiveScheduler::Error( TInt /*anError*/ ) const
       
    66     {
       
    67     }
       
    68 
       
    69 //  End of File