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

Semaphore: broken implementation. #81

Open
MedourMehdi opened this issue Nov 1, 2024 · 1 comment
Open

Semaphore: broken implementation. #81

MedourMehdi opened this issue Nov 1, 2024 · 1 comment

Comments

@MedourMehdi
Copy link
Contributor

Hi,

I haven't found time to test semaphore's functions.

A quick test of sample3 show broken behavior, the program get stuck under Freemint.
Replacing <semaphore.h> by "./semaphore.h" fixes the issue.

Please consider testing the semaphore examples I've already provided before.
Those examples were tested under linux/osx and freemint in order to validate same behavior on both environment.

Attached those examples and a working one header semaphore implementation.
sample2.cpp.zip
sample3.cpp.zip
semaphore.h.zip

@MedourMehdi
Copy link
Contributor Author

MedourMehdi commented Nov 2, 2024

I've more clue:
If you use example3, and select more consumers than producers (producers:2, consumers:3, buffer:128) then current mintlib implementation get stuked.
It works as expected with the semaphore header attached.

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

No branches or pull requests

1 participant