Skip to content

Conversation

@kevin-f-ortega
Copy link
Collaborator

Related Issue(s) #2959
Has Unit Tests (y/n) y
Documentation Included (y/n) y

Change Description

Updated ConditionVariable wait API to pend with a return status.

Rationale

Originally, the F Prime ConditionVariable wait function was locking the mutex. This led to double locking the mutex because the underlying OS' ConditionalVariable wait library call was also locking the mutex. This is an issue because we only do a single unlock.

Testing/Review Recommendations

Run UTs, run CI and nominal FIT tests.

Future Work

@LeStarch LeStarch merged commit b36933a into devel Jan 27, 2025
38 checks passed
@LeStarch LeStarch added the Breaking Changes / Needs Release Notes Need to add instructions in the release notes for updates. label Jan 27, 2025
@LeStarch
Copy link
Collaborator

Update Instructions Synopsis

We need to write-up instructions for OS implementers that the ConditionVariable API has changed to return a status.

Users should know that they must hold the lock to wait.

@kevin-f-ortega kevin-f-ortega deleted the update-mutex-interface branch January 27, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking Changes / Needs Release Notes Need to add instructions in the release notes for updates.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants