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

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!