Relative Content

Tag Archive for csignalsmingw-w64

Cross platform Signals in c

im trying to set a default behaviour for threads when they encounter a specific signal that i have set. In all the reference code i have found they use SIGUSR1/2 which is not defined for windows and they use functions like sigemptyset() and sigaction(). I know that windows has a signal() function for the same functionality in windows but still there is another problem of what signal to use as they dont provide any extra or signals that are not in use but only the important or essential ones that are necessary for the code running. so i am asking if there is anyway to define our own signals like SIGUSR in windows ourselves?
im currently using mingw-w64ucrt for more info