Feature #1440

Threads can have names

Added by Zbigniew Rebacz over 3 years ago. Updated 3 months ago.

Status:NewStart date:05/03/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:CoreSpent time:-
Target version:Release 2019.2 - NTH

Description

class Thread {
   // Probably some kind of synchronization is need.
   void   SetName(const String& name) { this->name = name; }
   String GetName() const             { return name; }

   // On starting thread we should use platform depend code that set thread name on system side.
}

POSIX documentation for set name thread function: http://man7.org/linux/man-pages/man3/pthread_setname_np.3.html

How to display thread with names (for example firefox on POSIX):
ps H -C firefox -o 'pid tid cmd comm'

History

#1 Updated by Zbigniew Rebacz over 3 years ago

  • Description updated (diff)

#2 Updated by Zbigniew Rebacz over 3 years ago

  • Description updated (diff)

#3 Updated by Zbigniew Rebacz over 3 years ago

  • Target version changed from Release 2017.1 - NTH to Release 2017.2 - NTH

#4 Updated by Zbigniew Rebacz over 1 year ago

  • Target version changed from Release 2017.2 - NTH to Release 2018.1 - NTH

#5 Updated by Zbigniew Rebacz over 1 year ago

  • Target version changed from Release 2018.1 - NTH to Release 2019.1 - NTH

#6 Updated by Zbigniew Rebacz 3 months ago

  • Target version changed from Release 2019.1 - NTH to Release 2019.2 - NTH

Also available in: Atom PDF