| ▲ | quotemstr 5 hours ago | |
One advantage to using pthread is the ability to call pthread_setname_np to name threads and thereby make debugging easier. Granted, you can call it with std::thread by using std::thread::native_handle() to get the pthread handle, but you're still using a non-std::thread API. | ||
| ▲ | grg0 5 hours ago | parent [-] | |
I see, I wasn't aware of that one. Typically I'd assign an ID, but yeah, names make things easier. | ||