Skip to content

Handle mutex and CV properly on recovery DFU - #12446

Merged
Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:recovery-dfu
Nov 26, 2023
Merged

Nir-Az merged 1 commit into
realsenseai:developmentfrom
Nir-Az:recovery-dfu

Conversation

@Nir-Az

@Nir-Az Nir-Az commented Nov 26, 2023

Copy link
Copy Markdown
Collaborator

Major change that fixed it is removing the redundant mutex lock, when you lock twice a non recursive lock it's undefined behavior.
On my testings it works on Win but get stuck on Linux.

I also added a check if we need to wait for the new device or it is already there (like currently on some devices)
Tracked on [RSDEV-1195]

@Nir-Az
Nir-Az requested a review from OhadMeir November 26, 2023 09:13

@OhadMeir OhadMeir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Nir-Az Nir-Az closed this Nov 26, 2023
@Nir-Az Nir-Az reopened this Nov 26, 2023
@Nir-Az
Nir-Az merged commit 40af256 into realsenseai:development Nov 26, 2023
@Nir-Az
Nir-Az deleted the recovery-dfu branch January 9, 2024 12:21
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