[ECOS] How to retrieve the thread control block information

Yubin Gong ygong688@yahoo.com
Thu Jul 1 18:15:00 GMT 2004


Hi, I would like to know if there is a simple way to
retrieve the task control block information that is
provided when a thread is created, including
sched_info, name, stack_base, etc. as shown in the
following prototype:

void cyg_thread_create(cyg_addrword_t sched_info,
cyg_thread_entry_t* entry, cyg_addrword_t entry_data,
char* name, void* stack_base, cyg_ucount32 stack_size,
cyg_handle_t* handle, cyg_thread* thread);


I can use the function cyg_thread_self() to get the
handle, but I don't know how to use the handle to get
a pointer to the control block.

Thanks for your help!

Yubin



		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list