This is the mail archive of the ecos-patches@sources.redhat.com 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]

Re: Added new function: cyg_thread_get_id()


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


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