March 9, 2026
5:45 p.m.
regardlng the last commit. To be properly thread safe, I'd rather: * keep the allocation done lazily (as it's currently done); you can protect against two threads allocating at the same time using: * alloc object * set the global variable with InterlockedCompareExchangePointer * and if another thread beats us, free the oject * for the process detach case,it would be better to implement DllCanUnloadNow (and keep track of the used objects) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10275#note_131617