2 ms·
You can get the underlying pthread pointer if you want.
by shaklee3 9y ago
You can get the underlying pthread pointer if you want.
- ridiculous_fish 9y agoUnfortunately pthread attributes need to be set at creation time, so by the time you have a pthread pointer it's too late.
- to3m 9y agopthread_sigmask always operates on the current thread.
- ridiculous_fish 9y agoThe usual technique is to set the pthread sigmask and then spawn the thread, to avoid the obvious race. But it's risky to assume that `std::thread` won't manipulate the sigmask by itself.