Re: why AtomicInteger in LinkedBlockingQueue always use getAndIncrement?

Martin Buchholz via Concurrency-interest <[email protected]> Mon, 27 Jul 2020 18:19:45 -0700
Newsgroups gmane.comp.java.jsr.166-concurrency
Message-ID <CA+kOe088COrJJQ+b-=ibz827MJprdQwaqUhG0p_yLuQYDTmrdw@mail.gmail.com>
Your suggestion may be a small improvement.

On Mon, Jul 27, 2020 at 6:01 PM Liu via Concurrency-interest
<[email protected]> wrote:
>
> 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
_______________________________________________
Concurrency-interest mailing list
[email protected]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest