[ECOS] static member in class ???

Tony Ko nhko@gctsemi.com
Wed Oct 10 03:21:00 GMT 2001


hi.
look at "Cyg_Scheduler" class below.

class Cyg_Scheduler
    : public Cyg_Scheduler_Implementation
{
   .
   .
   .
public:
   .
   .
// The only  scheduler instance should be this one...
    static Cyg_Scheduler scheduler;
};

scheduler object is referenced as a static member.
then why must this be referenced as a static member???

thanks in advance.

Tony




More information about the Ecos-discuss mailing list