why AtomicInteger in LinkedBlockingQueue always use getAndIncrement?
Liu via Concurrency-interest <[email protected]> Tue, 28 Jul 2020 08:58:52 +0800 (GMT+08:00)
| Newsgroups | gmane.comp.java.jsr.166-concurrency |
|---|---|
| Message-ID | <[email protected]> |
why AtomicInteger in LinkedBlockingQueue always use getAndIncrement?why not IncrementAndGet.(PS:JDK8) there is a reason or not? or both functions can be uesd. I hope this question is not silly. _______________________________________________ Concurrency-interest mailing list [email protected] http://cs.oswego.edu/mailman/listinfo/concurrency-interest