This is the mail archive of the ecos-discuss@sourceware.org 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]

Problem with pthread_self for the eCos main thread


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


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