Skip to content
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

API to set thread name seen by htop etc #139

Open
dktapps opened this issue Dec 20, 2023 · 0 comments
Open

API to set thread name seen by htop etc #139

dktapps opened this issue Dec 20, 2023 · 0 comments

Comments

@dktapps
Copy link
Member

dktapps commented Dec 20, 2023

This should be doable using pthread_setname_np.

However, since this is a nonstandard function, it's implemented differently on different platforms. Most notably, it's not possible to set the name of a thread from another thread on macOS.

It's not clear if there may be other cross-platform limitations or factors to consider with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant