blob: 6109d4106e9b13ec465572b729ebd0aca706a314 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import java.util.concurrent.atomic.AtomicLong;
// "Convert to atomic" "true"
class T {
private final AtomicLong l = new AtomicLong(10L);
public synchronized void update(long m) {
l.set(m);
}
}
|