Feature #1440
Threads can have names
Status: | New | Start date: | 05/03/2016 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Core | Spent 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 9 years ago
- Description updated (diff)
#2 Updated by Zbigniew Rebacz almost 9 years ago
- Description updated (diff)
#3 Updated by Zbigniew Rebacz almost 9 years ago
- Target version changed from Release 2017.1 - NTH to Release 2017.2 - NTH
#4 Updated by Zbigniew Rebacz over 7 years ago
- Target version changed from Release 2017.2 - NTH to Release 2018.1 - NTH
#5 Updated by Zbigniew Rebacz about 7 years ago
- Target version changed from Release 2018.1 - NTH to Release 2019.1 - NTH
#6 Updated by Zbigniew Rebacz almost 6 years ago
- Target version changed from Release 2019.1 - NTH to Release 2019.2 - NTH
#7 Updated by Zbigniew Rebacz over 5 years ago
- Target version changed from Release 2019.2 - NTH to Release 2020.1 - NTH
#8 Updated by Zbigniew Rebacz almost 5 years ago
- Target version changed from Release 2020.1 - NTH to Release 2020.2 - NTH
#9 Updated by Zbigniew Rebacz over 4 years ago
- Target version changed from Release 2020.2 - NTH to Release 2021.1 - NTH