Skip to content

Commit

Permalink
restore volatile keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
alsora committed May 2, 2023
1 parent fe3b7fd commit b7ac9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/test/rclcpp/executors/test_executors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ TYPED_TEST(TestExecutors, testRaceConditionAddNode)
stress_threads.emplace_back(
[&should_cancel, i]() {
// This is just some arbitrary heavy work
size_t total = 0;
volatile size_t total = 0;
for (size_t k = 0; k < 549528914167; k++) {
if (should_cancel) {
break;
Expand Down

0 comments on commit b7ac9bc

Please sign in to comment.