38 void Coroutine::insertSorted() {
42 while (*p !=
nullptr) {
43 if (
getName().compareTo((*p)->getName()) <= 0)
break;
void resume()
Add a Suspended coroutine into the head of the scheduler linked list, and change the state to Yieldin...
const FCString & getName() const
Human-readable name of the coroutine.
static const Status kStatusYielding
Coroutine returned using the COROUTINE_YIELD() statement.
virtual unsigned long millis() const
Returns the current millisecond clock.
static const Status kStatusSuspended
Coroutine has been suspended using suspend() and the scheduler should remove it from the queue upon t...
All coroutines are instances of the Coroutine base class.
Base class of all coroutines.
static Coroutine ** getRoot()
Get the pointer to the root pointer.