This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

static member in class ???


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]