[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++ during drivers initialization
Manuel Pedro Coutinho wrote:
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.
MSN Busca: fácil, rápido, direto ao ponto. http://search.msn.com.br
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985