摘要: public final int getAndIncrement() { for (;;) { int current = get(); int next = current + 1; if (compareAndSet(current, next)) return current; } } 这个方 阅读全文
posted @ 2017-09-01 09:50 牧の风 阅读(158) 评论(0) 推荐(0) 编辑