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

Fixes SemaphoreContext for Single Processor #1420

Merged
merged 2 commits into from
May 10, 2024

Conversation

fhaScireum
Copy link
Member

Description

On a system with a single processor, 1 divided by 2 equals 0 for integer calculations. As no permits are added but only acquired and released, starting with 0 permits leads to endless waiting.

This resulted in PDFs with images not being created at all.

Additional Notes

Checklist

  • Code change has been tested and works locally
  • Code was formatted via IntelliJ and follows SonarLint & best practices
  • Patch Tasks: Is local execution of Patch Tasks necessary? If so, please also mark the PR with the tag.

fhaScireum added 2 commits May 8, 2024 14:44
1 divided by 2 equals 0 for integer calculations. As no permits are added but only acquired and released, starting with 0 permits leads to endless waiting.
This resulted in PDFs with images not being created at all.

Fixes: SIRI-962
Fixes: SIRI-962
@fhaScireum fhaScireum added the 🐛 Bugfix Contains only a small fix for an existing bug label May 8, 2024
@sabieber sabieber changed the title SIRI-962: Fixes SemaphoreContext for Single Processor Fixes SemaphoreContext for Single Processor May 8, 2024
@mkeckmkeck mkeckmkeck merged commit b1549d7 into develop May 10, 2024
4 checks passed
@mkeckmkeck mkeckmkeck deleted the feature/fha/SIRI-962-Semaphore-Single-Core branch May 10, 2024 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bugfix Contains only a small fix for an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants