C++ during drivers initialization
Joel Sherrill <joel@OARcorp.com>
joel.sherrill at OARcorp.com
Thu Feb 24 15:31:25 UTC 2005
Manuel Pedro Coutinho wrote:
>
>
> Hi
>
> I was hoping that one could use C++ (at least the constructors) during
> the drivers initialization.
No you can't.
> If this isn't possible at this point could anyone tell when it is?
There are no restrictions on what a C++ constructor may do. Many
actions are not possible in RTEMS until tasking is enabled. C++
constructors can call blocking actions (file read, semaphore lock,
etc.) so global constructors are run when the first task is executed
before control passes to the user code for the thread.
> Many Thanks!
> Manuel Coutinho
>
> _________________________________________________________________
> MSN Busca: fácil, rápido, direto ao ponto. http://search.msn.com.br
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list