This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: Added new function: cyg_thread_get_id()
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Dan Jakubiec <djakubiec at yahoo dot com>
- Cc: eCos Patches <ecos-patches at sources dot redhat dot com>
- Date: 09 Dec 2003 08:11:05 -0700
- Subject: Re: Added new function: cyg_thread_get_id()
- Organization: MLB Associates
- References: <20031208193018.40714.qmail@web21206.mail.yahoo.com>
On Mon, 2003-12-08 at 12:30, Dan Jakubiec wrote:
> Attached for your review is a new function that returns the unique
> thread ID for a given thread handle. It complements the existing
> cyg_thread_find() function (which finds the thread handle for a given
> unique thread ID).
>
> In looking at the existing kernel thread API, it seemed that the only
> way to get the thread ID of an existing thread was to enumerate the
> entire thread list via cyg_thread_get_next(). This function provides a
> more direct approach for callers that already know the thread handle
> they are interested in.
>
> Since the kernel thread API doesn't really use the thread ID much, the
> primary usefulness of this function is for debugging purposes.
Looks reasonable to me - applied, thanks.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates