-
-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assign names to threads #618
Labels
easy hacks
The solution is expected to be straightforward even if you are new to the project
enhancement
help wanted
An important and awaited task but we have no human resources for it yet
system
Low-level system-specific stuff
Comments
gavv
added
enhancement
help wanted
An important and awaited task but we have no human resources for it yet
easy hacks
The solution is expected to be straightforward even if you are new to the project
system
Low-level system-specific stuff
labels
Oct 17, 2023
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Closed
This comment was marked as outdated.
This comment was marked as outdated.
Unassigning, so that someone could pick this up. Here is the link to abandoned PR: #716 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
easy hacks
The solution is expected to be straightforward even if you are new to the project
enhancement
help wanted
An important and awaited task but we have no human resources for it yet
system
Low-level system-specific stuff
pthread allows to assign names to threads, which is very handy for debugging. For example, gdb will display this names.
We always create threads using core::Thread class. We can do the following:
const char * name
to Thread constructorThis SO answer gives an idea how to do it. Similar to Thread::get_tid, we should use ifdefs for different platforms.
The text was updated successfully, but these errors were encountered: