Class InterruptibleTask.SynchronizedAtomicHelper
- java.lang.Object
-
- com.google.common.util.concurrent.InterruptibleTask.AtomicHelper
-
- com.google.common.util.concurrent.InterruptibleTask.SynchronizedAtomicHelper
-
- Enclosing class:
- InterruptibleTask
private static final class InterruptibleTask.SynchronizedAtomicHelper extends InterruptibleTask.AtomicHelper
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SynchronizedAtomicHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
compareAndSetRunner(InterruptibleTask task, java.lang.Thread expect, java.lang.Thread update)
Atomic compare-and-set of theInterruptibleTask.runner
field.
-
-
-
Method Detail
-
compareAndSetRunner
boolean compareAndSetRunner(InterruptibleTask task, java.lang.Thread expect, java.lang.Thread update)
Description copied from class:InterruptibleTask.AtomicHelper
Atomic compare-and-set of theInterruptibleTask.runner
field.- Specified by:
compareAndSetRunner
in classInterruptibleTask.AtomicHelper
- Returns:
- true if successful
-
-