[ECOS] Problem with pthread_self for the eCos main thread

LOGIE Hans Hans.LOGIE@psicontrol.com
Fri Oct 27 09:37:00 GMT 2006


Hi,
 
I have a problem with the pthread_self() function in eCos. When creating
POSIX threads and retrieving their thread ID's with pthread_self() there
are no problems. However when retrieving the thread ID of the main
thread, there is an assert on line 680 of pthread.cxx which tells that
the current thread is not a POSIX thread. According to the following
page in the eCos documentation, the main thread should also be a POSIX
thread when the POSIX package is installed.
http://ecos.sourceware.org/docs-latest/ref/posix-thread-management.html
(see at the bottom of the page)
 
In our eCos configuration the POSIX package is installed. There is an
option that determines if the main thread is a POSIX thread. This option
can not be changed but is ticked by default, so that the main thread
should also be a POSIX thread (when the POSIX package is installed).
 
Best regards,
 
Hans Logie


**** DISCLAIMER **** The contents of this e-mail are intended for the named addressee only. It contains information which may be confidential and which may also be privileged. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. Further, we make every effort to keep our network free from viruses. However, you do need to verify that this email and any attachments are free of viruses as we can take no responsibility for any computer virus which might be transferred by way of this e-mail.



--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list