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: ZI ZHOU <zhouzi at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 13 Jun 2003 06:12:51 +0100
- Subject: Re: [ECOS] question about POSIX thread
- References: <20030610041436.60905.qmail@web12502.mail.yahoo.com>
ZI ZHOU wrote:
Hi,
I am trying to find out my current thread using
pthread_self(), can I call it directly in
cyg_start()?in other words, is cyg_start() considered
a main thread?
No.
Or should I create a thread in
cyg_start() and call pthread_self() within this
thread? How about cyg_thread_self()?
Only create eCos threads from cyg_start(). Create POSIX threads from
main() (and use pthread_create).
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