[ECOS] Stack problem
NavEcos
ecos@navosha.com
Thu Oct 31 13:52:00 GMT 2002
On Thursday 31 October 2002 09:36 pm, Cusson, Pascal wrote:
> Hi everyone,
> Does anyone know how to get the list of all active thread ? Is there
> such a thing in eCos ?
>
> Pascal
The code at the end of this message will walk all the threads in a system.
You have to use the C++ API rather than the C API. The C++ API is not
guarenteed to stay the same from revision to revision.
You might want to refer this this documentation to learn more about SOME of
the internal workings of eCos:
http://navosha.com/ecos/
-Rich
----
Cyg_Thread
*cygThread;
for (cygThread = Cyg_Thread::get_list_head() ; cygThread != NULL ;
cygThread = cygThread->get_list_next())
{
// do stuff with the thread
}
--
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