webengine/osswebengine/MemoryManager/Inc/StopScheduler.h
branchRCL_3
changeset 48 79859ed3eea9
parent 46 30342f40acbf
child 49 919f36ff910f
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
    18 #ifndef __STOPPER_H__
    18 #ifndef __STOPPER_H__
    19 #define __STOPPER_H__
    19 #define __STOPPER_H__
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 
    22 
    23 #include <MemoryManager.h>
    23 #include "MemoryManager.h"
    24 
    24 
    25 // CONSTANTS
    25 // CONSTANTS
    26 static const TUint KGoodMemoryThreshold = ( 4*1024*1024 ); // keep checking memory levels
       
    27 static const TUint KLowMemoryThreshold = ( 2*1024*1024 ); // should stop activities
       
    28 static const TUint KStopThreshold = ( 1024*1024 );  // unsafe limit
       
    29 
    26 
    30 // DATA TYPES
    27 // DATA TYPES
    31 
    28 
    32 // CLASS DECLARATION
    29 // CLASS DECLARATION
    33 
    30 
    92 		TInt 		    iMemRequested;
    89 		TInt 		    iMemRequested;
    93         TSchedulerState iState;
    90         TSchedulerState iState;
    94         RTimer          iCheckTimer;
    91         RTimer          iCheckTimer;
    95         TInt            iNextStop;
    92         TInt            iNextStop;
    96 	};
    93 	};
       
    94 
    97 #endif
    95 #endif