We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defining D3D12MA_DEBUG_GLOBAL_MUTEX causes double locking of static debug std::mutex when releasing resources.
See IUnknownImpl::Release():
ULONG STDMETHODCALLTYPE IUnknownImpl::Release() { D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK const uint32_t newRefCount = --m_RefCount; if(newRefCount == 0) ReleaseThis(); return newRefCount; }
When m_RefCount == 0, ReleaseThis(), tries to acquire debug lock again:
void Allocator::ReleaseThis() { D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK ... }
Resulting in std::system_exception being thrown.
The text was updated successfully, but these errors were encountered:
1d8ba60
Thank you for finding this. It has been fixed.
Sorry, something went wrong.
No branches or pull requests
Defining D3D12MA_DEBUG_GLOBAL_MUTEX causes double locking of static debug std::mutex when releasing resources.
See IUnknownImpl::Release():
When m_RefCount == 0, ReleaseThis(), tries to acquire debug lock again:
Resulting in std::system_exception being thrown.
The text was updated successfully, but these errors were encountered: