From: jlarmour@cygnus.co.uk (Jonathan Larmour)
To: guinan@bluebutton.com
Cc: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Thread-specific data
Date: Mon, 21 Jun 1999 02:33:00 -0000 [thread overview]
Message-ID: <199906201534.QAA12980@peshwari.cygnus.co.uk> (raw)
In-Reply-To: <Pine.LNX.3.96.990618144410.26479B-100000@newt.home.net>
In article < Pine.LNX.3.96.990618144410.26479B-100000@newt.home.net > you write:
>
>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.
Yes, it (quite sensibly) is not a per-thread value itself :-).
The map of free thread data indexes can be found in the Cyg_Thread class
in kernel/v1_2_1/include/thread.hxx as:
// Map of free thread_data indexes. Each bit represents an index
// and is 1 if that index is free, and 0 if it is in use.
static cyg_ucount32 thread_data_map;
The "static" stops it from being thread-specific.
HTH,
Jifl
--
Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762
"I used to have an open mind but || Get yer free open source RTOS's here...
my brains kept falling out." || http://sourceware.cygnus.com/ecos
Help fight spam! http://spam.abuse.net/ These opinions are all my own fault
prev parent reply other threads:[~1999-06-21 2:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-18 11:57 Jamie Guinan
1999-06-21 2:33 ` Jonathan Larmour [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199906201534.QAA12980@peshwari.cygnus.co.uk \
--to=jlarmour@cygnus.co.uk \
--cc=ecos-discuss@sourceware.cygnus.com \
--cc=guinan@bluebutton.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).