Y
Hacker News
new
|
ask
|
show
|
jobs
by
gsjs
3741 days ago
I don't think there's a data race there, but the compiler can't check that. What the compiler sees is more than one thread accessing the variable `data`, which could cause a data race.