pmmp / ext-pmmpthread

Fork of https://github.com/krakjoe/pthreads with a revamped API and PHP 8.1+ support
Other
81 stars 17 forks source link

API to set thread name seen by htop etc #139

Open dktapps opened 10 months ago

dktapps commented 10 months ago

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.