ext-pmmpthread
ext-pmmpthread copied to clipboard
API to set thread name seen by htop etc
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.