Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yeah I just wanted to highlight it, as I've see far too much code passing INFINITE to WaitForSingleObject or similar.

And yeah, not having another way of cancelling is not nice, but sadly not entirely uncommon.



Right I think the suggestion in that case would be to upgrade to an API that does support cancellation wherever possible. E.g. wait for multiple objects with the original argument and an additional cancel event.




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

Search: