Package io.deephaven.base
Class AtomicUtil
java.lang.Object
io.deephaven.base.AtomicUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
atomicAnd
(AtomicInteger i, int mask) static int
atomicAndNot
(AtomicInteger i, int mask) static int
atomicOr
(AtomicInteger i, int mask) static int
changeAndGetIfGreaterThan
(AtomicInteger i, int by, int pivot, int negative) static long
changeAndGetIfGreaterThan
(AtomicLong i, long by, long pivot, long negative) static int
changeAndGetIfLessThan
(AtomicInteger i, int by, int pivot, int negative) static long
changeAndGetIfLessThan
(AtomicLong i, long by, long pivot, long negative) static long
compareAndSetAndGetOld
(AtomicLong i, long expected, long updated) static int
getAndDecreaseIfGreaterThan
(AtomicInteger i, int by, int pivot) static long
getAndDecreaseIfGreaterThan
(AtomicLong i, long by, long pivot) static int
getAndIncreaseIfLessThan
(AtomicInteger i, int by, int pivot) static long
getAndIncreaseIfLessThan
(AtomicLong i, long by, long pivot) static long
getAndSetIfDecreases
(AtomicLong i, long value) static long
getAndSetIfDecreases
(AtomicLong i, long by, long value) static int
getAndSetIfGreaterThan
(AtomicInteger i, int value, int pivot) static long
getAndSetIfGreaterThan
(AtomicLong i, long value, long pivot) static int
getAndSetIfIncreases
(AtomicInteger i, int value) static long
getAndSetIfIncreases
(AtomicLong i, long value) static int
getAndSetIfIncreasesBy
(AtomicInteger i, int by, int value) static long
getAndSetIfIncreasesBy
(AtomicLong i, long by, long value) static int
getAndSetIfLessThan
(AtomicInteger i, int value, int pivot) static long
getAndSetIfLessThan
(AtomicLong i, long value, long pivot) static boolean
setIfGreaterThan
(AtomicInteger i, int pivot, int value) static boolean
setIfGreaterThan
(AtomicLong i, long pivot, long value) static boolean
setIfLessThan
(AtomicInteger i, int pivot, int value) static boolean
setIfLessThan
(AtomicLong i, long pivot, long value)
-
Constructor Details
-
AtomicUtil
public AtomicUtil()
-
-
Method Details
-
compareAndSetAndGetOld
-
getAndSetIfIncreases
-
getAndSetIfIncreasesBy
-
getAndSetIfDecreases
-
getAndSetIfDecreases
-
getAndSetIfIncreases
-
getAndSetIfIncreasesBy
-
setIfLessThan
-
setIfGreaterThan
-
changeAndGetIfLessThan
-
getAndIncreaseIfLessThan
-
getAndDecreaseIfGreaterThan
-
getAndSetIfGreaterThan
-
getAndSetIfLessThan
-
changeAndGetIfGreaterThan
-
setIfLessThan
-
setIfGreaterThan
-
changeAndGetIfLessThan
-
changeAndGetIfGreaterThan
-
getAndSetIfGreaterThan
-
getAndSetIfLessThan
-
getAndIncreaseIfLessThan
-
getAndDecreaseIfGreaterThan
-
atomicOr
-
atomicAnd
-
atomicAndNot
-