On Wed Jul 10 08:57:19 2024 +0000, Alfred Agrell wrote:
WINEWAYLAND_RESOURCE_DESTROY is defined in the header, but this operation isn't? I don't think that's right.
It seems that when initializing pthread, mutex uses something like malloc, and destroy is needed to free up memory. But I'm not sure. Atomic uses a simple variable. And there are many places in the code where pthread_mutex does not call destroy. I also rewrote the ntdll code to an atomic lock, and destroy is only called in one place in winewayland. For ntdll, the recursive mutex remains to be completed. In terms of doing the same for winevulkan and win32u. Currently, atomic lock in Apex Legends gave +10 FPS. I also moved everything into a separate header file for better code unification.