In single-threaded code, that’s fine. But the moment you have multiple threads incrementing the same counter, weird things start happening. Your final count will almost never match what you expected.
現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする現在アクセス不可の可能性がある結果が表示されています。
アクセス不可の結果を非表示にする