This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stack problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]