Fix possible data race while calling has_ready_entities in EventsCBGExecutor (backport #3288) #3372
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.24) × (1 − Review Confidence (0.71)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.24 · 27 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.56 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.199
Real PR Conversation Timeline
3 items
Approved
Approved these changes.
Pulls: ros2/rclcpp#3372
Gist: https://gist.githubusercontent.com/ahcorde/a095c0861f5c62ce195432839dd1918a/raw/ffa15cdff66332a8deae0e87ad20f6747e80ab53/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: kilted
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/20849
Linux 
Linux-aarch64 
Linux-rhel 
Windows 
ahcorde
mergify[bot]
Description
In #3178, I called
has_ready_entitiesmethod ofFirstInFirstOutCallbackGroupHandlewithout holdingready_mutex. This can result to data races while accessingready_entities. This PR fixes that.Is this user-facing behavior change?
Did you use Generative AI?
No
Additional Information
<hr>This is an automatic backport of pull request #3288 done by Mergify.