This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Dangerous method: Cyg_SchedulerImplementation::set_idle_thread(Cyg_Thread* thread)?
Fabian Scheler <fabian.scheler@gmail.com> writes:
> Hi,
>
> > This function is not part of the exported API: there is no C
> > equivalent in kapi.h, nor is there any documentation. It is intended
> > only for use within the kernel, and only gets used during system
> > initialization.
>
> Ok, I agree that the eCos-user is intended to use the C-API, but he is
> not forbidden to use the C++-API, is he? And if this method is used
> for initialization pruposes only, why is it declared public?
The C++ public/protected/private thing is fairly crude. It doen't
allow us to distinguish between public-in-the-kernel-only and
public-to-everyone. There's only so much we can do to keep kernel
interfaces secure.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss