栏目:一针见血 作者:admin 日期:2018-10-29 评论:0 点击: 723 次
1 2 3 4 5 6 7 8 |
public final int getAndIncrement() { for (;;) { int current = get(); int next = current + 1; if (compareAndSet(current, next)) return current; } } |
------====== 本站公告 ======------
金丝燕网,一个严谨的网站!