| ▲ | jvert 8 months ago | |||||||
Or SetThreadContext() if you want to be hardcore. (not recommended) | ||||||||
| ▲ | manwe150 8 months ago | parent [-] | |||||||
Why not recommended? As far as things close to signals go, this is how you implement signals in user land on Windows (along with pause/resume thread). You can even take locks later during the process, as long as you also took them before sending the signal (same exact restrictions as fork actually, but unfortunately atfork hooks are not accessible and often full of fork-unsafe data race and deadlock implementation bugs themselves in my experience with all the popular libc) | ||||||||
| ||||||||