This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: question about POSIX thread
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Jay Foster <jay at systech dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 26 Jun 2003 23:25:34 +0100
- Subject: Re: [ECOS] question about POSIX thread
- References: <80B97DE95AEED311BA580050047FE98494F5F0@mail.systech.com>
Jay Foster wrote:
Is it OK to start a Posix thread (using pthread_create()) from
cyg_user_start()? This seems to work OK, but what are the kinds of things
that might go wrong if this is not OK?
If you don't explicitly set the scheduler policy then the thread will try
and inherit it from its parent. This will cause a NULL dereference which
on some systems may not be noticed.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss