I am looking for a Windows replacement for the *nix SIGALRM
. I have seen suggested (e.g. here) to use timeSetEvent
, but that doesn't quite do the same. SIGALRM
calls the callback function on the same thread as the rest of my (single threaded) program, where as, as far as I understand, timeSetEvent
calls it on a new thread.
Am I right about this distinction? If so, is there some way to achieve the *nix type behavior on Windows?