Skip to content

Commit

Permalink
AsynchronousEventBeat can get locked where it will not beat anymore (#…
Browse files Browse the repository at this point in the history
…13293)

* AsynchronousEventBeat can get locked where it will not beat anymore

* Change files
  • Loading branch information
acoates-ms authored Jun 5, 2024
1 parent 14fce92 commit fefc835
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "AsynchronousEventBeat can get locked where it will not beat anymore",
"packageName": "react-native-windows",
"email": "30809111+acoates-ms@users.noreply.github.com",
"dependentChangeType": "patch"
}
3 changes: 1 addition & 2 deletions vnext/Microsoft.ReactNative/AsynchronousEventBeat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ void AsynchronousEventBeat::induce() const {
}

void AsynchronousEventBeat::request() const {
bool alreadyRequested = isRequested_;
EventBeat::request();
bool alreadyRequested = isRequested_.exchange(true);
if (!alreadyRequested) {
if (m_context.UIDispatcher().HasThreadAccess()) {
induce();
Expand Down

0 comments on commit fefc835

Please # to comment.