Hacker News new | past | comments | ask | show | jobs | submit login

They call it an "alertable state", and that's:

> A thread enters an alertable state when it calls the SleepEx, SignalObjectAndWait, MsgWaitForMultipleObjectsEx, WaitForMultipleObjectsEx, or WaitForSingleObjectEx function.

So this is a lot less like Unix signals. It only really works if the thread you're doing the async procedure call to is one that's likely to use those.

So APCs are safe enough -- a lot safer than Unix signal handlers.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: