This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
question about POSIX thread
- From: ZI ZHOU <zhouzi at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 9 Jun 2003 21:14:36 -0700 (PDT)
- Subject: [ECOS] question about POSIX thread
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? Or should I create a thread in
cyg_start() and call pthread_self() within this
thread? How about cyg_thread_self()?
I current call pthread_self() in cyg_start() directly,
and it hangs while trying to return info->id.
thanks & your help is appreciated.
Zi
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss