Skip to content

Conversation

vmoroz
Copy link
Member

@vmoroz vmoroz commented Dec 20, 2024

Cherry pick #14223

Description

Fix failing calls to std::mutex::lock.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

There are some reports that a first call to std::mutex::lock fail.
The issue seems to be related to ABI incompatibility between the RNW DLL and the VCLib DLL.

What

To address this issue we define the _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR preprocessor definition.
See:

Changelog

Add _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR preprocessor definition to fix failing calls to std::mutex::lock.

Microsoft Reviewers: Open in CodeFlow

@vmoroz vmoroz requested a review from a team as a code owner December 20, 2024 21:14
@chrisglein
Copy link
Member

@vmoroz This was approved. Still something you are looking to merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants