Skip to content
New issue

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

[0.73] Fix calls to std::mutex::lock #14225

Merged
merged 4 commits into from
Jan 15, 2025

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:15
Replaced sizeof...(I) with std::index_sequence<I...>::size()
@vmoroz vmoroz requested a review from a team as a code owner January 15, 2025 00:23
@vmoroz vmoroz requested a review from a team as a code owner January 15, 2025 00:33
@vmoroz vmoroz enabled auto-merge (squash) January 15, 2025 00:42
@vmoroz vmoroz merged commit ac3fb07 into microsoft:0.73-stable Jan 15, 2025
83 checks passed
@vmoroz vmoroz deleted the PR/0.73-fix_std_mutex_lock branch January 15, 2025 17:22
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.

2 participants