Uses of Class
java.dyn.Coroutine
-
Packages that use Coroutine Package Description java.dyn -
-
Uses of Coroutine in java.dyn
Methods in java.dyn that return Coroutine Modifier and Type Method Description Coroutine
CoroutineSupport. threadCoroutine()
return the threadCoroutineMethods in java.dyn with parameters of type Coroutine Modifier and Type Method Description static boolean
CoroutineSupport. checkAndThrowException(Coroutine coroutine)
check if we should throw a TenantDeath or ThreqadDeathExceptionstatic boolean
CoroutineSupport. isInClinit(Coroutine coroutine)
Telling if current coroutine is executing clinitvoid
CoroutineSupport. symmetricStopCoroutine(Coroutine target)
yield to coroutine with lock and stop the current coroutinevoid
CoroutineSupport. symmetricYieldTo(Coroutine target)
yield to coroutine with lockvoid
CoroutineSupport. terminateCoroutine(Coroutine target)
terminate current coroutine and yield forwardvoid
CoroutineSupport. unsafeSymmetricYieldTo(Coroutine target)
optimized version of symmetricYieldTo based on assumptions: 1. we won't simultaneously steal aCoroutine
from other threads 2. we won't switch to aCoroutine
that's being stolen 3. we won't steal a runningCoroutine
this function should only be called incom.alibaba.wisp.engine.WispTask#switchTo(WispTask, WispTask)
, we skipped unnecessary lock to improve performance.static void
Coroutine. unsafeYieldTo(Coroutine target)
static void
Coroutine. yieldTo(Coroutine target)
Yields execution to the target coroutine.
-