On Wed Mar 13 15:06:15 2024 +0000, Zhiyi Zhang wrote:
In that case neither windows or wine blocks.
So that means MFCancelWorkItem() doesn't wait for work items to finish then. And WaitForThreadpoolWaitCallbacks() waits for work items to finish. So there is a difference. And please add these tests as well. Also, you said wine doesn't block, is that TRUE after your MR?
(copying from IRC)
Also, you said wine doesn't block, is that TRUE after your MR?
yes, it is still true. because `scheduled_item_cancelable_callback` removes the item from the list of items, so `queue_cancel_item` won't find it, except in race conditions