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 CoroutineCoroutineSupport. threadCoroutine()return the threadCoroutineMethods in java.dyn with parameters of type Coroutine Modifier and Type Method Description static booleanCoroutineSupport. checkAndThrowException(Coroutine coroutine)check if we should throw a TenantDeath or ThreqadDeathExceptionstatic booleanCoroutineSupport. isInClinit(Coroutine coroutine)Telling if current coroutine is executing clinitvoidCoroutineSupport. symmetricStopCoroutine(Coroutine target)yield to coroutine with lock and stop the current coroutinevoidCoroutineSupport. symmetricYieldTo(Coroutine target)yield to coroutine with lockvoidCoroutineSupport. terminateCoroutine(Coroutine target)terminate current coroutine and yield forwardvoidCoroutineSupport. unsafeSymmetricYieldTo(Coroutine target)optimized version of symmetricYieldTo based on assumptions: 1. we won't simultaneously steal aCoroutinefrom other threads 2. we won't switch to aCoroutinethat's being stolen 3. we won't steal a runningCoroutinethis function should only be called incom.alibaba.wisp.engine.WispTask#switchTo(WispTask, WispTask), we skipped unnecessary lock to improve performance.static voidCoroutine. unsafeYieldTo(Coroutine target)static voidCoroutine. yieldTo(Coroutine target)Yields execution to the target coroutine.
-