| ▲ | grg0 5 hours ago | ||||||||||||||||
Why are you using pthread instead of std::thread? | |||||||||||||||||
| ▲ | pg83 5 hours ago | parent | next [-] | ||||||||||||||||
I guess I just didn't notice. In any case, it wouldn't have been std::thread, but https://github.com/pg83/std/blob/master/std/thr/thread.h from my bike lib! | |||||||||||||||||
| |||||||||||||||||
| ▲ | quotemstr 5 hours ago | parent | prev [-] | ||||||||||||||||
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. | |||||||||||||||||
| |||||||||||||||||