[ECOS] Posix Thread name

Tony Butt tjb@cea.com.au
Tue May 4 03:14:00 GMT 2004


I had a requirement to be able to explicitly set the name of a posix thread,
made some simple changes to posix/current/src/pthread.cxx and
posix/current/include/types.h, and can now optionally set the name of a
posix thread created using pthread_create.

The name is set by assigning a value to pthread_attr.name before calling
pthread_create().

A patch to do this is attached. If this should be sent anywhere else, please
let me know...

Tony Butt
Software Engineer
CEA Technologies

tjb@cea.com.au
Ph:  02 62130195 
Fax: 02 62130013
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread_name.diff
Type: application/octet-stream
Size: 1831 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20040504/1595bfca/attachment.obj>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list