WP. Yingamphol
WP. Yingamphol
After an attempt at this issue, I found out that most OSs that implements pthread have their own take at getthreadname and setthreadname here's an exhautive list of the things...
> Can you clarify, why you are saying you recommend using pthreadkey? Sure! in my point of view, name is just a thread local variable and pthread key is already...
I was talking about immediate use but you’re absolutely right. Apart from `top`, `ps` also uses this thread name. In the end we’d have to cover all the OS’s implementation...
> With macos not supporting setting the name of another thread, should we just not support it anywhere, so we have a consistent API? Yeah, I was also hesitant about...
If we’re going down the thread.create_with_name* route, I think we don’t need to have a get_name. we have to make a struct field (thread.Thread) for the name to make it...
> I disagree, I don't see a reason to add this field to a Thread, the kernel already represents the single point of truth for this value. This isn't a...