This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Threads and Handles
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] Threads and Handles
- From: jens dot ohlund at secrc dot abb dot se
- Date: Tue, 4 Jul 2000 17:21:29 +0200
Hi !
I have declared a cyg_handle_t, a cyg_thread and a stack as static.
This thread I start and delete every now and then. In betwen, do I have to do something with the handle ?
Or the memory as well (I'm using the same stack the next time I create the thread).
I mean, the cyg_thread_create sets the cyg_handle_t, but what does it do with the handle if the handle already have some old
values ?
My problem is that after a certain time of create and delete this thread i get a SIGTRAP. And i can't understand why,
because I'm very careful to check that the thread have left OR is in last line of code in the thread method before I delete it.
Just to be sure that resources get back, and by resources I mean memory.
yours
Jens Ohlund