This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
static member in class ???
- To: <ecos-discuss at sources dot redhat dot com>
- Subject: [ECOS] static member in class ???
- From: "Tony Ko" <nhko at gctsemi dot com>
- Date: Wed, 10 Oct 2001 19:22:10 +0900
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