Skip to content

RefArch: make RA_stop_signal_called atomic Avoid a data race between … - #3

Open
shadowfaxx1 wants to merge 1 commit into
EttusResearch:devfrom
shadowfaxx1:dev
Open

RefArch: make RA_stop_signal_called atomic Avoid a data race between …#3
shadowfaxx1 wants to merge 1 commit into
EttusResearch:devfrom
shadowfaxx1:dev

Conversation

@shadowfaxx1

Copy link
Copy Markdown

Description

Replace RA_stop_signal_called with std::atomic<bool> in RefArch.

The stop flag is accessed by multiple RX/TX threads and modified by
the signal handler during shutdown. Using an atomic flag avoids a
potential data race while preserving existing behavior.

Related Issue

N/A

Which devices/areas does this affect?

  • RefArch thread shutdown handling
  • Multi-threaded RX/TX operation

Testing Done

  • Built successfully with the modified code.
  • Verified normal startup and shutdown behavior.
  • Confirmed RX/TX threads terminate correctly when the stop signal is set.

Checklist

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes, and all previous tests pass.

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.

1 participant