Skip to content

Commit

Permalink
lock mutex in status method
Browse files Browse the repository at this point in the history
  • Loading branch information
deReeperJosh committed Oct 21, 2024
1 parent 62d3742 commit 2b39327
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cafe/OS/libs/nsyshid/Dimensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ namespace nsyshid
}
else if (!m_figureAddedRemovedResponses.empty() && m_isAwake)
{
std::lock_guard lock(m_dimensionsMutex);
response = m_figureAddedRemovedResponses.front();
m_figureAddedRemovedResponses.pop();
responded = true;
Expand Down

0 comments on commit 2b39327

Please sign in to comment.