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
See title. Also functional test at osal/src/tests/count-sem-timeout-test.c is missing a 0 timeout test, or this would have been caught.
To Reproduce
Observed using CF on RTEMS, the flow control semaphore hangs CF if not given. Could reproduce by adding a 0 timeout case to osal/src/tests/count-sem-timeout-test.c.
Expected behavior
Immediate return when passing 0 timeout to OS_CountSemTimedWait. Although not explicit in the OSAL API, it's implied (and how it works for POSIX):
Describe the bug
See title. Also functional test at osal/src/tests/count-sem-timeout-test.c is missing a 0 timeout test, or this would have been caught.
From https://docs.rtems.org/doxygen/branches/master/group__ClassicSem.html:
rtems_semaphore_obtain - timeout of 0 means wait forever when RTEMS_WAIT option is passed in
To Reproduce
Observed using CF on RTEMS, the flow control semaphore hangs CF if not given. Could reproduce by adding a 0 timeout case to osal/src/tests/count-sem-timeout-test.c.
Expected behavior
Immediate return when passing 0 timeout to
OS_CountSemTimedWait
. Although not explicit in the OSAL API, it's implied (and how it works for POSIX):osal/src/os/inc/osapi-countsem.h
Lines 113 to 131 in 99e3b40
Could check if TimeInTicks == 0, pass in
RTEMS_NO_WAIT
.Code snips
osal/src/os/rtems/src/os-impl-countsem.c
Lines 190 to 216 in 99e3b40
System observed on:
Additional context
None.
Reporter Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: