3 ms·
pthread_sigmask always operates on the current thread.
by to3m 9y ago
pthread_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.