This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
[ECOS] Thread-specific data
- To: ecos-discuss@sourceware.cygnus.com
- Subject: [ECOS] Thread-specific data
- From: Jamie Guinan <guinan@bluebutton.com>
- Date: Fri, 18 Jun 1999 14:57:29 -0400 (EDT)
- Reply-To: guinan@bluebutton.com
Hello,
I have a question about thread-specific data in eCos.
I have a library in which I would like to associate
an integer value with the calling thread.
Can the value returned by cyg_thread_new_data_index()
be shared by all threads that want to index thread-specific
data based on a specific key?
In other words, is it true that the cyg_ucount32 returned
by cyg_thread_new_data_index() is _not_ a per-thread datum
itself? I would hope not, but I just wanted to clarify the
issue.
Thanks,
-Jamie