Is there a way to name pthreads then dump the state of them in a program?


@gudenau on linux you can set a thread's name with pthread_setname_np and you can get it by enumerating the threads and calling pthread_getname_np (it also shows up in gdb and possibly in some of the raw ptrace interfaces). there's nothing in POSIX, though

@roguelazer Linux is good enough because debugging.

I figured out this particular issue at least. (Byte order.....)

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!