Skip to content

Make AsyncROS2Node publish thread allocation-free - #105

Merged
ds58 merged 1 commit into
developfrom
fix/async-publish-thread-allocation-free
Jul 30, 2026
Merged

Make AsyncROS2Node publish thread allocation-free#105
ds58 merged 1 commit into
developfrom
fix/async-publish-thread-allocation-free

Conversation

@ds58

@ds58 ds58 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +231 to +234
while (!slots.compareAndSet(index, null, task))
{
Thread.onSpinWait();
}

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.

So it is busy waiting in the end hahaha

@TomaszTB TomaszTB 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.

CPU core no go brrr becuase Thread#onSpinWait() :(

@ds58
ds58 merged commit 9d53021 into develop Jul 30, 2026
10 checks passed
@ds58
ds58 deleted the fix/async-publish-thread-allocation-free branch July 30, 2026 22:36
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