uORB: fix TSAN issues using atomics

This commit is contained in:
Julian Oes
2026-02-18 12:43:02 +13:00
parent 91e25df7c4
commit 22a32eaa55
13 changed files with 92 additions and 75 deletions
+2 -2
View File
@@ -162,13 +162,13 @@ static void hrt_latency_update()
/* bounded buckets */
for (index = 0; index < LATENCY_BUCKET_COUNT; index++) {
if (latency <= latency_buckets[index]) {
latency_counters[index]++;
__atomic_fetch_add(&latency_counters[index], 1, __ATOMIC_RELAXED);
return;
}
}
/* catch-all at the end */
latency_counters[index]++;
__atomic_fetch_add(&latency_counters[index], 1, __ATOMIC_RELAXED);
}
/*