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] |
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. -- Dan Jakubiec Systech Corp __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
Attachment:
cyg_thread_get_id.pat
Description: cyg_thread_get_id.pat
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |