How can I detect that a thread pool work item is taking too long?

211 · Raymond Chen · Jan. 10, 2022, 4:42 p.m.
A customer wants to detect that their thread pool work items are not completing quickly enough and trigger a crash if they appear to be stuck. They looked at Wait­For­Threadpool­Wait­Callbacks, but that function doesn’t support a timeout. It just waits indefinitely. The post How can I detect that a thread pool work item is taking too long? appeared first on The Old New Thing....