BTW, this driver is genuinely useful even for Linux code. WaitForMultipleObjects is super-helpful if you want to do sane thread cancellation without jumping through POSIX hoops.