Optimize AtomicBoolean.getAndSet

XMLWordPrintable

      AtomicBoolean.getAndSet is implemented using a CAS-loop, but in fact with only 2 boolean values, a single CAS suffices

            Assignee:
            Martin Buchholz
            Reporter:
            Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: