Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sem_timedwait always decrements semaphore value #26

Open
fdgonthier opened this issue Jan 10, 2023 · 1 comment
Open

sem_timedwait always decrements semaphore value #26

fdgonthier opened this issue Jan 10, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@fdgonthier
Copy link

On entering the sem_timedwait function the semaphore value is (correctly?) decremented but it is never reset to its original value when xSemaphoreTake returns a timeout. In my case, this means that in a loop where sem_timedwait is called with a timeout, the value of the semaphore keeps getting more negative.

A patch is forthcoming as I need this to work.

@n9wxu n9wxu added bug Something isn't working help wanted Extra attention is needed labels Jan 11, 2023
@paulbartell
Copy link

@fdgonthier : Did you ever get this working as expected? We would greatly appreciate a patch if so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants