There would be a data race if multiple threads tried to update total at the same time. You could solve this by using an atomic type ...
確定! 回上一頁