#1308

Fix tracy deadlock on WaitForSingleObject when unloading within DLLMain

Openivan-flinkwants to merge intofrom

Fixes: https://github.com/wolfpld/tracy/issues/349

According to Microsoft official guidelines, synchronize with other threads within DLLMain is forbidden because it can cause a deadlock.

https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-best-practices

Activity

3
ivan-flink7mo ago

@wolfpld could you please re-run linux job, because the error related to the runner, not the change itself

[build](https://github.com/wolfpld/tracy/actions/runs/23254744136/job/67616969586)
The hosted runner lost communication with the server. Anything in your workflow that terminates the runner process, starves it for CPU/Memory, or blocks its network access can cause this error.
wolfpld7mo ago

@wolfpld could you please re-run linux job

It will keep failing. Ignore it.