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: Reg yg_thread_create


> 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


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