Is there a standard C ++ library library or replacement for pthread_sigmask?

In the code base I'm working on, flow control is done using std::threadand related objects, not directly using pthread.

However, I could not find the C ++ equivalent pthread_sigmask, so I wonder if there is a standard C ++ way to block signals and therefore process signals sequentially in a multi-threaded application.

In particular, I am wondering if there is a way to do it here , using c++11without#include <pthread.h>

+3
source share
1 answer

The short answer is no.

pthread_sigmask - pthread, ++ . , Windows, , API Windows .

, <signal.h> . Boost .

, , , , . , ; . std:: signal std:: raise ?

+2

All Articles