Feature #1440

Threads can have names

Added by Zbigniew Rebacz almost 8 years ago. Updated over 3 years ago.

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

0%

Category:CoreSpent time:-
Target version:Release 2021.1 - 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 almost 8 years ago

  • Description updated (diff)

#2 Updated by Zbigniew Rebacz almost 8 years ago

  • Description updated (diff)

#3 Updated by Zbigniew Rebacz almost 8 years ago

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

#4 Updated by Zbigniew Rebacz about 6 years ago

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

#5 Updated by Zbigniew Rebacz almost 6 years ago

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

#6 Updated by Zbigniew Rebacz over 4 years ago

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

#7 Updated by Zbigniew Rebacz over 4 years ago

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

#8 Updated by Zbigniew Rebacz almost 4 years ago

  • Target version changed from Release 2020.1 - NTH to Release 2020.2 - NTH

#9 Updated by Zbigniew Rebacz over 3 years ago

  • Target version changed from Release 2020.2 - NTH to Release 2021.1 - NTH

Also available in: Atom PDF