Giving a pthread a name?

Peter Dufault dufault at hda.com
Tue Jun 22 14:45:48 UTC 2010


On Jun 22, 2010, at 10:02 , Peter Dufault wrote:

> I know it won't be portable, but is there an RTEMS public interface to give the thread a name?  I haven't found it yet.

I poked around until I found it in testsuites/psxtests/psx14/init.c.  For the record:

  puts( "Setting current thread name to Justin" );
  status = rtems_object_set_name( pthread_self(), "Justin" );

Peter
-----------------
Peter Dufault
HD Associates, Inc.      Software and System Engineering




More information about the users mailing list