You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The current condition variable API in the main branch does not agree with the common uses in POSIX and RTEMS which means there are many use cases that are not possible with the OSAL API.
The major disconnect is that the condition variable wait should operate on an external mutex, not an internal single-use mutex. This is how POSIX and RTEMS both work, and it enables use cases where one mutex guards a resource but has multiple condition variables associated with it.
To Reproduce
This is an API bug and is present in the header and documented logic.
It is not possible to have a single guard mutex with multiple associated condition variables.
Expected behavior
The OS_CondVarWait() and OS_CondVarTimedWait() should take a handle to an external mutex to operate on, rather than an internal mutex.
System observed on:
This is an API issue and is not dependent on HW or OS versions.
This API is not present in the last release tag, so is only on the main branch.
Additional context
Add any other context about the problem here.
Reporter Info
Brian Sipos, JHU/APL
The text was updated successfully, but these errors were encountered:
Describe the bug
The current condition variable API in the main branch does not agree with the common uses in POSIX and RTEMS which means there are many use cases that are not possible with the OSAL API.
The major disconnect is that the condition variable wait should operate on an external mutex, not an internal single-use mutex. This is how POSIX and RTEMS both work, and it enables use cases where one mutex guards a resource but has multiple condition variables associated with it.
To Reproduce
This is an API bug and is present in the header and documented logic.
It is not possible to have a single guard mutex with multiple associated condition variables.
Expected behavior
The
OS_CondVarWait()
andOS_CondVarTimedWait()
should take a handle to an external mutex to operate on, rather than an internal mutex.System observed on:
This is an API issue and is not dependent on HW or OS versions.
This API is not present in the last release tag, so is only on the
main
branch.Additional context
Add any other context about the problem here.
Reporter Info
Brian Sipos, JHU/APL
The text was updated successfully, but these errors were encountered: