[ECOS] Question about Kernel? (Scheduler)
HuangQiang
jameshq@liverpool.ac.uk
Tue Apr 23 09:14:00 GMT 2002
Hi all:
I have got a problem in understanding the kernel of eCOS.
While creating a user thread(cyg_thread_create()) an CYG_Thread class object
pinter will be constructed, and in the object constructor it will call
CYG_Scheduler::scheduler.register_thread(). The question: isn't an object of
the CYG_Scheduler needed to be created? Also in the declaration of
CYG_Scheduler, an member variable scheduler type of CYG_Scheduler(In other
C++ program(like Visual C++) such definition can't be used at link time
while it can't find the symbol why?). So isn't an object of CYG_Scheduler
needed? why implement it in such
way(CYG_Scheduler::scheduler.register_thread())? Why don't create an object
of the CYG_Scheduler? I don't understand why this is done in such way.
Could anybody give me some suggestion on it?
Thanks a lot!
regards!
james
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list