Skip to content

Use baselibs semaphore monotonic wait instead of polling semaphore - #811

Merged
MaciejKaszynski merged 1 commit into
eclipse-score:mainfrom
etas-contrib:semaphore_poll
Oct 20, 2026
Merged

MaciejKaszynski merged 1 commit into
eclipse-score:mainfrom
etas-contrib:semaphore_poll

Conversation

@NicolasFussberger

Copy link
Copy Markdown
Contributor

Performance Improvement: High frequency polling of semaphores likely causes high CPU load.

Instead use a single monotonic wait, provided by baselibs OSAL layer.

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-811: https://eclipse-score.github.io/lifecycle/pr-811/

@MaciejKaszynski MaciejKaszynski left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, didn't know about score::os::MockGuard looks really useful

@MaciejKaszynski
MaciejKaszynski added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@MaciejKaszynski
MaciejKaszynski added this pull request to the merge queue Oct 20, 2026

@SimonKozik SimonKozik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks OK, but I would expect better API from score::os::Semaphore...

The need to handle EINTR by hand is disappointing.

Merged via the queue into eclipse-score:main with commit a683423 Oct 20, 2026
20 checks passed
@MaciejKaszynski
MaciejKaszynski deleted the semaphore_poll branch October 20, 2026 07:49
@github-project-automation github-project-automation Bot moved this from Backlog to Done in LCM - Lifecycle & Health FT Oct 20, 2026

This branch was successfully deployed

1 active deployment
workflow-approval — 60220090 Deployed Oct 19, 2026 by NicolasFussberger via Build and test x86_64-qnx / approval #1544
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants