This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Stack problem
- From: NavEcos <ecos at navosha dot com>
- To: "Cusson, Pascal" <pascal dot cusson at analog dot com>,"eCos Discussion" <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 31 Oct 2002 13:52:25 +0000
- Subject: Re: [ECOS] Stack problem
- Organization: Navosha
- References: <8FDC0F9BE1F91D44BE964AA54AAA67B6D9A9AF@wilmexm3.ad.analog.com>
- Reply-to: ecos at navosha dot com
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