31 std::lock_guard<std::mutex> guard(it->second.currentMutex);
32 it->second.isSignalRecieved =
true;
55 std::lock_guard<std::mutex> guard(it->second.currentMutex);
56 b = it->second.isSignalRecieved;
void phoenix_sig_handler(int signum)
Signal handler.
void phoenix_addSignalCatcher(int signalType)
Add a signal catcher to handle the given signal.
bool phoenix_isSignalRecived(int signalType)
Check if the given signal has been recived by the program (or a thread)
std::map< int, SignalHandler > phoenix_mapSignalHandler
Map of signal handlers.
Handles signal with boolean an mutex.
bool isSignalRecieved
True if the signal has been recived, false otherwise.
std::mutex currentMutex
Mutex of the class to avoid conflict manipulation between threads.
int expectedSignal
Signal we want to check.