/** * DO NOT CALL THIS METHOD. This is an implementation detail * of {@link Fiber}. */ @Deprecated @Override public void run() { Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer()); try { assert !synchronous; // doRun returns true to indicate an early exit from fiber processing if (!doRun()) { if (startedSync && suspendedCount == 0 && (next != null || contsSize > 0)) { // We bailed out of running this fiber we started as sync, and now // want to finish running it async startedSync = false; // Start back up as an async fiber dumpFiberContext("restarting (async) after startSync"); owner.addRunnable(this); } else { completionCheck(); } } } finally { ContainerResolver.getDefault().exitContainer(old); } }
/** * DO NOT CALL THIS METHOD. This is an implementation detail * of {@link Fiber}. */ @Deprecated @Override public void run() { Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer()); try { assert !synchronous; // doRun returns true to indicate an early exit from fiber processing if (!doRun()) { if (startedSync && suspendedCount == 0 && (next != null || contsSize > 0)) { // We bailed out of running this fiber we started as sync, and now // want to finish running it async startedSync = false; // Start back up as an async fiber dumpFiberContext("restarting (async) after startSync"); owner.addRunnable(this); } else { completionCheck(); } } } finally { ContainerResolver.getDefault().exitContainer(old); } }
/** * DO NOT CALL THIS METHOD. This is an implementation detail * of {@link Fiber}. */ @Deprecated @Override public void run() { Container old = ContainerResolver.getDefault().enterContainer(owner.getContainer()); try { assert !synchronous; // doRun returns true to indicate an early exit from fiber processing if (!doRun()) { if (startedSync && suspendedCount == 0 && (next != null || contsSize > 0)) { // We bailed out of running this fiber we started as sync, and now // want to finish running it async startedSync = false; // Start back up as an async fiber dumpFiberContext("restarting (async) after startSync"); owner.addRunnable(this); } else { completionCheck(); } } } finally { ContainerResolver.getDefault().exitContainer(old); } }