Skip to content

Experimental mach semaphore_t usage - #1007

Draft
sbooth wants to merge 3 commits into
mainfrom
msema
Draft

sbooth wants to merge 3 commits into
mainfrom
msema

Conversation

@sbooth

@sbooth sbooth commented Sep 16, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI 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.

🔵 Needs a closer look

Changing synchronization from an audio render callback has real-time scheduling implications requiring human validation.

Pull request overview

Experiments with Mach semaphore-based event signaling for AudioPlayer.

Changes:

  • Adds a Mach semaphore wrapper.
  • Signals render events directly.
  • Replaces adaptive polling with a 500 ms timed wait.
File summaries
File Description
AudioPlayer.mm Updates render-event signaling and waiting.
AudioPlayer.h Adds the Mach semaphore implementation and member.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Sources/CSFBAudioEngine/Player/AudioPlayer.h
@github-actions

Copy link
Copy Markdown

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v22.1.8) reports: 1 file(s) not formatted
  • Sources/CSFBAudioEngine/Player/msema.hpp

Have any feedback or feature suggestions? Share it here.

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

Successfully merging this pull request may close these issues.

2 participants