This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Reg yg_thread_create
- From: Andrew Lunn <andrew dot lunn at ascom dot ch>
- To: Hrishikesh B <kesh at sasken dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 1 Mar 2002 13:27:53 +0100
- Subject: Re: [ECOS] Reg yg_thread_create
- References: <3C7F725B.C0ED0371@sasken.com>
> I would like to know, how do check if
> cyg_thread_create succeded or not. From the api doc I couldn't figure
> out a way to do that.
Turn on assertions. Look in the Infrastructure section. If it fails,
it will probably assert. If it returns from the function call, you
can assume it succeeded in creating the thread. The thread may not do
anything useful, if you have passed bad parameters etc, but it at
least exists.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss