On Fri Aug 4 21:50:27 2023 +0000, Zebediah Figura wrote:
Nothing can call PutWorkItem or use the queue after Shutdown has been called.
True, although that fact is a little obscure (especially since MFPutWorkItem() is called from a callback. That said, my concern at this point is less about correctness than idiomaticity.
https://gitlab.winehq.org/wine/wine/-/merge_requests/3491#note_41426
This sounds like a good option to me.