ext-pmmpthread icon indicating copy to clipboard operation
ext-pmmpthread copied to clipboard

API to set thread name seen by htop etc

Open dktapps opened this issue 2 years ago • 0 comments

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.

dktapps avatar Dec 20 '23 16:12 dktapps