Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

OsclSchedulerObserver Class Reference
[OSCL Proc]

#include <oscl_scheduler.h>


Public Methods

virtual void OsclSchedulerTimerCallback (OsclAny *aContext, uint32 aDelayMsec)=0
virtual void OsclSchedulerReadyCallback (OsclAny *aContext)=0
virtual ~OsclSchedulerObserver ()


Detailed Description

OsclSchedulerObserver is an observer class for use when running scheduler in non-blocking mode. The scheduler observer can register for callbacks so it will be notified when it is necessary to run scheduler again. Note: non-blocking mode and scheduler callbacks are not supported on Symbian.


Constructor & Destructor Documentation

virtual OsclSchedulerObserver::~OsclSchedulerObserver   [inline, virtual]
 


Member Function Documentation

virtual void OsclSchedulerObserver::OsclSchedulerReadyCallback OsclAny   aContext [pure virtual]
 

OsclSchedulerReadyCallback is called when the ready queue is updated, meaning an AO is ready to run. Scheduler needs to be run ASAP. Calling context may be any thread, so be careful!

The current observer is cleared before making the callback, so the observer must call RegisterForCallback again if it wants further notifications.

virtual void OsclSchedulerObserver::OsclSchedulerTimerCallback OsclAny   aContext,
uint32    aDelayMsec
[pure virtual]
 

OsclSchedulerTimerCallback is called when the front of the timer queue is updated. This means the minimum delay has changed and scheduler needs to be run again after aDelayMsec. Calling context is in-thread.

The current observer is cleared before making the callback, so the observer must call RegisterForCallback again if it wants further notifications.


The documentation for this class was generated from the following file:
OSCL API
Posting Version: OPENCORE_20090310